Changeset 4232


Ignore:
Timestamp:
07/23/08 11:04:01 (11 years ago)
Author:
curtis
Message:

Add separate view modes for "spectral projection" and "emission spectrum."

File:
1 edited

Legend:

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

    r4230 r4232  
    9090  // GUI components for image pane 
    9191  private JProgressBar progress; 
    92   private JRadioButton intensityMode, lifetimeMode, spectraMode; 
     92  private JRadioButton intensityMode, lifetimeMode; 
     93  private JRadioButton projectionMode, emissionMode; 
    9394  private JSlider cSlider; 
    9495  private JTextField minField, maxField; 
     
    204205    intensityMode = new JRadioButton("Intensity", true); 
    205206    lifetimeMode = new JRadioButton("Lifetime"); 
    206     spectraMode = new JRadioButton("Spectra"); 
    207     spectraMode.setEnabled(false); 
     207    emissionMode = new JRadioButton("Emission"); 
     208    emissionMode.setToolTipText("<html>" + 
     209      "Displays an emission spectrum of the data.</html>"); 
     210    emissionMode.setEnabled(false); 
     211    projectionMode = new JRadioButton("Projection"); 
     212    projectionMode.setToolTipText("<html>" + 
     213      "Displays a \"spectral projection\" of the data.</html>"); 
     214    projectionMode.setEnabled(false); 
    208215    ButtonGroup group = new ButtonGroup(); 
    209216    group.add(intensityMode); 
    210217    group.add(lifetimeMode); 
    211     group.add(spectraMode); 
     218    group.add(projectionMode); 
     219    group.add(emissionMode); 
    212220    intensityMode.addActionListener(this); 
    213221    lifetimeMode.addActionListener(this); 
    214     spectraMode.addActionListener(this); 
     222    projectionMode.addActionListener(this); 
     223    emissionMode.addActionListener(this); 
    215224    viewModePane.add(Box.createHorizontalStrut(5)); 
    216225    viewModePane.add(intensityMode); 
    217226    viewModePane.add(lifetimeMode); 
    218     viewModePane.add(spectraMode); 
     227    viewModePane.add(projectionMode); 
     228    viewModePane.add(emissionMode); 
    219229 
    220230    JPanel sliderPane = new JPanel(); 
     
    300310    else if (src == intensityMode) doIntensity(); 
    301311    else if (src == lifetimeMode) doLifetime(); 
    302     else if (src == spectraMode) doSpectra(); 
     312    else if (src == projectionMode) doSpectralProjection(); 
     313    else if (src == emissionMode) doEmissionSpectrum(); 
    303314  } 
    304315 
     
    460471 
    461472  private void doLifetime() { 
     473    // TODO 
     474    // https://skyking.microscopy.wisc.edu/trac/java/ticket/130 
    462475    try { 
    463476      if (lifetimeField == null) { 
     
    492505  } 
    493506 
    494   private void doSpectra() { 
     507  private void doSpectralProjection() { 
    495508    // TODO 
    496509    // https://skyking.microscopy.wisc.edu/trac/java/ticket/86 
     510  } 
     511 
     512  private void doEmissionSpectrum() { 
     513    // TODO 
     514    // https://skyking.microscopy.wisc.edu/trac/java/ticket/164 
    497515  } 
    498516 
Note: See TracChangeset for help on using the changeset viewer.