Changeset 167 for trunk/loci/visbio/view


Ignore:
Timestamp:
02/09/05 14:19:48 (15 years ago)
Author:
curtis
Message:

Change data controls button to say "Edit" (matches Data tab).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/view/TransformPanel.java

    r155 r167  
    214214      if (data != null) handler.getWindow().removeTransform(data); 
    215215    } 
     216    else if (cmd.equals("dataControls")) { 
     217      DataManager dm = (DataManager) 
     218        handler.getWindow().getVisBio().getManager(DataManager.class); 
     219      DataTransform data = (DataTransform) transformList.getSelectedValue(); 
     220      if (data != null) dm.showControls(data); 
     221    } 
    216222    else if (cmd.equals("dataColors")) { 
    217223      DataTransform data = (DataTransform) transformList.getSelectedValue(); 
     
    220226        link.getColorHandler().showColorDialog(); 
    221227      } 
    222     } 
    223     else if (cmd.equals("dataControls")) { 
    224       DataManager dm = (DataManager) 
    225         handler.getWindow().getVisBio().getManager(DataManager.class); 
    226       DataTransform data = (DataTransform) transformList.getSelectedValue(); 
    227       if (data != null) dm.showControls(data); 
    228228    } 
    229229    else if (cmd.equals("animate")) { 
     
    315315    removeTransform.setEnabled(false); 
    316316 
     317    // button for displaying a data transform's controls 
     318    dataControls = new JButton("Edit"); 
     319    dataControls.setActionCommand("dataControls"); 
     320    dataControls.addActionListener(this); 
     321    if (!LAFUtil.isMacLookAndFeel()) dataControls.setMnemonic('i'); 
     322    dataControls.setToolTipText("Shows data's controls"); 
     323    dataControls.setEnabled(false); 
     324 
    317325    // button for editing a data transform's colors 
    318326    dataColors = new JButton("Colors"); 
     
    323331    dataColors.setEnabled(false); 
    324332 
    325     // button for displaying a data transform's controls 
    326     dataControls = new JButton("Controls"); 
    327     dataControls.setActionCommand("dataControls"); 
    328     dataControls.addActionListener(this); 
    329     if (!LAFUtil.isMacLookAndFeel()) dataControls.setMnemonic('o'); 
    330     dataControls.setToolTipText("Shows data's controls"); 
    331     dataControls.setEnabled(false); 
    332  
    333333    // button for shifting a data transform up in the list 
    334334    moveUp = new JButton("Up"); 
     
    361361    bsb.addGridded(removeTransform); 
    362362    bsb.addRelatedGap(); 
     363    bsb.addGridded(dataControls); 
     364    bsb.addRelatedGap(); 
    363365    bsb.addGridded(dataColors); 
    364     bsb.addRelatedGap(); 
    365     bsb.addGridded(dataControls); 
    366366    bsb.addRelatedGap(); 
    367367    bsb.addGridded(moveUp); 
Note: See TracChangeset for help on using the changeset viewer.