Changeset 2681


Ignore:
Timestamp:
04/25/07 15:27:49 (13 years ago)
Author:
curtis
Message:

Unhardcode default number of cached time points.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/browser/OptionsWindow.java

    r2679 r2681  
    4242  // -- Fields -- 
    4343 
    44   /**Constant dlu size for indents in GUI*/ 
     44  /** Constant dlu size for indents in GUI. */ 
    4545  private static final String TAB = "7dlu"; 
     46 
     47  /** Default number of time points to cache. */ 
     48  private static final int DEFAULT = 100; 
    4649 
    4750  /** Parent window. */ 
    4851  private CustomWindow cw; 
    4952 
    50   /** The CacheManager for this instance of data browser.*/ 
     53  /** The CacheManager for this instance of data browser. */ 
    5154  private CacheManager manager; 
    5255 
    53   /** The FileStitcher used to stich files together.*/ 
     56  /** The FileStitcher used to stich files together. */ 
    5457  private FileStitcher fs; 
    5558 
    56   /** CheckBoxes to indicate which axes to store.*/ 
     59  /** CheckBoxes to indicate which axes to store. */ 
    5760  private JCheckBox zCheck, tCheck, cCheck; 
    5861 
    59   /** CheckBoxes to control if caching is on or off */ 
     62  /** CheckBoxes to control if caching is on or off. */ 
    6063  private JCheckBox cacheToggle, mergeCheck; 
    6164 
    62   /** Spinners for slice storage.*/ 
     65  /** Spinners for slice storage. */ 
    6366  private JSpinner zFSpin, zBSpin, tFSpin, tBSpin, cFSpin, cBSpin; 
    6467 
    65   /** Combo Boxes for cache mode selection.*/ 
     68  /** Combo Boxes for cache mode selection. */ 
    6669  private JComboBox modeBox, stratBox; 
    6770 
    68   /** Combo Boxes for dimensional priority selection.*/ 
     71  /** Combo Boxes for dimensional priority selection. */ 
    6972  private JComboBox topBox, midBox, lowBox; 
    7073 
     
    7275  private JButton resetBtn; 
    7376 
    74   /** A flag to turn off listening to gui components.*/ 
     77  /** A flag to turn off listening to gui components. */ 
    7578  private boolean update; 
    7679 
    77   /** Storage of what priority settings used to be.*/ 
     80  /** Storage of what priority settings used to be. */ 
    7881  private int oldTop, oldMid, oldLow; 
    7982 
     
    338341    SpinnerNumberModel zBMod = new SpinnerNumberModel(0, 0, 9999, 1); 
    339342    zBSpin = new JSpinner(zBMod); 
    340     SpinnerNumberModel tFMod = new SpinnerNumberModel(20, 0, 9999, 1); 
     343    SpinnerNumberModel tFMod = new SpinnerNumberModel(DEFAULT, 0, 9999, 1); 
    341344    tFSpin = new JSpinner(tFMod); 
    342345    SpinnerNumberModel tBMod = new SpinnerNumberModel(0, 0, 9999, 1); 
     
    492495  } 
    493496 
    494   /** Set up the combo box to reflect appropriate axis.*/ 
     497  /** Set up the combo box to reflect appropriate axis. */ 
    495498  private void setBox(JComboBox thisBox, int index) { 
    496499    switch (order.charAt(index)) { 
     
    577580  } 
    578581 
    579   /** Enables/Disables CacheManager options in option window.*/ 
     582  /** Enables/Disables CacheManager options in option window. */ 
    580583  private void enableCache(boolean enable) { 
    581584    zCheck.setEnabled(enable); 
     
    636639 
    637640        Integer zeroI = new Integer(0); 
    638         Integer twentyI = new Integer(20); 
     641        Integer defaultI = new Integer(DEFAULT); 
    639642        zFSpin.setValue(zeroI); 
    640643        zBSpin.setValue(zeroI); 
    641         tFSpin.setValue(twentyI); 
     644        tFSpin.setValue(defaultI); 
    642645        tBSpin.setValue(zeroI); 
    643646        cFSpin.setValue(zeroI); 
    644647        cBSpin.setValue(zeroI); 
    645         manager.setSize(0, 0, 0, 20, 0, 0); 
     648        manager.setSize(0, 0, 0, DEFAULT, 0, 0); 
    646649 
    647650        oldTop = topBox.getSelectedIndex(); 
Note: See TracChangeset for help on using the changeset viewer.