Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.actions
Class CytoPanelAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by cytoscape.util.CytoscapeAction
          extended by cytoscape.actions.CytoPanelAction
All Implemented Interfaces:
CytoPanelListener, ActionListener, Serializable, Cloneable, EventListener, Action

public class CytoPanelAction
extends CytoscapeAction
implements CytoPanelListener

Menu item handler for CytoPanels

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CytoPanelAction(JCheckBoxMenuItem menuItem, CytoPanel cytoPanel)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Menu item select/deselect handler.
 void onComponentAdded(int count)
          Notifies the listener when a component is added to the CytoPanel.
 void onComponentRemoved(int count)
          Notifies the listener when a component is removed from the CytoPanel.
 void onComponentSelected(int componentIndex)
          Notifies the listener when a new component on the CytoPanel is selected.
 void onStateChange(CytoPanelState newState)
          Notifies the listener on a change in the CytoPanel state.
 
Methods inherited from class cytoscape.util.CytoscapeAction
actionHelp, clone, completions, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, isAccelerated, isInMenuBar, isInToolBar, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CytoPanelAction

public CytoPanelAction(JCheckBoxMenuItem menuItem,
                       CytoPanel cytoPanel)
Constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Menu item select/deselect handler.

Specified by:
actionPerformed in interface ActionListener
Specified by:
actionPerformed in class CytoscapeAction

onComponentAdded

public void onComponentAdded(int count)
Notifies the listener when a component is added to the CytoPanel.

Specified by:
onComponentAdded in interface CytoPanelListener
Parameters:
count - The number of components on the CytoPanel.

onComponentRemoved

public void onComponentRemoved(int count)
Notifies the listener when a component is removed from the CytoPanel.

Specified by:
onComponentRemoved in interface CytoPanelListener
Parameters:
count - The number of components on the CytoPanel.

onStateChange

public void onStateChange(CytoPanelState newState)
Notifies the listener on a change in the CytoPanel state.

Specified by:
onStateChange in interface CytoPanelListener
Parameters:
newState - The new CytoPanel state - see CytoPanelState class.

onComponentSelected

public void onComponentSelected(int componentIndex)
Notifies the listener when a new component on the CytoPanel is selected.

Specified by:
onComponentSelected in interface CytoPanelListener
Parameters:
componentIndex - The index of the component selected.

www.cytoscape.org