Changeset 4230


Ignore:
Timestamp:
07/23/08 10:42:29 (12 years ago)
Author:
curtis
Message:

Add progress bar to image pane GUI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/slim/TwoDPane.java

    r4226 r4230  
    8888  private boolean[][] roiMask; 
    8989 
    90   // GUI components for intensity pane 
     90  // GUI components for image pane 
     91  private JProgressBar progress; 
    9192  private JRadioButton intensityMode, lifetimeMode, spectraMode; 
    9293  private JSlider cSlider; 
     
    193194    add(iPlotPane); 
    194195 
     196    progress = new JProgressBar(); 
     197    add(progress); 
     198 
    195199    JPanel viewModePane = new JPanel(); 
    196200    viewModePane.setLayout(new BoxLayout(viewModePane, BoxLayout.X_AXIS)); 
    197201    add(viewModePane); 
     202 
     203    viewModePane.add(new JLabel("View mode:")); 
     204    intensityMode = new JRadioButton("Intensity", true); 
     205    lifetimeMode = new JRadioButton("Lifetime"); 
     206    spectraMode = new JRadioButton("Spectra"); 
     207    spectraMode.setEnabled(false); 
     208    ButtonGroup group = new ButtonGroup(); 
     209    group.add(intensityMode); 
     210    group.add(lifetimeMode); 
     211    group.add(spectraMode); 
     212    intensityMode.addActionListener(this); 
     213    lifetimeMode.addActionListener(this); 
     214    spectraMode.addActionListener(this); 
     215    viewModePane.add(Box.createHorizontalStrut(5)); 
     216    viewModePane.add(intensityMode); 
     217    viewModePane.add(lifetimeMode); 
     218    viewModePane.add(spectraMode); 
    198219 
    199220    JPanel sliderPane = new JPanel(); 
     
    252273    cToggle.setEnabled(channels > 1); 
    253274    sliderPane.add(cToggle); 
    254  
    255     viewModePane.add(new JLabel("View mode:")); 
    256     intensityMode = new JRadioButton("Intensity", true); 
    257     lifetimeMode = new JRadioButton("Lifetime"); 
    258     spectraMode = new JRadioButton("Spectra"); 
    259     spectraMode.setEnabled(false); 
    260     ButtonGroup group = new ButtonGroup(); 
    261     group.add(intensityMode); 
    262     group.add(lifetimeMode); 
    263     group.add(spectraMode); 
    264     intensityMode.addActionListener(this); 
    265     lifetimeMode.addActionListener(this); 
    266     spectraMode.addActionListener(this); 
    267     viewModePane.add(Box.createHorizontalStrut(5)); 
    268     viewModePane.add(intensityMode); 
    269     viewModePane.add(lifetimeMode); 
    270     viewModePane.add(spectraMode); 
    271275 
    272276    int maxChan = doIntensity(); 
Note: See TracChangeset for help on using the changeset viewer.