Cytoscape 2.8.0 API

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:
ActionListener, Serializable, Cloneable, EventListener, Action, MenuListener

public class CytoPanelAction
extends CytoscapeAction

See Also:
Serialized Form

Field Summary
protected static String HIDE
           
protected  CytoPanelName parent
           
protected  int position
           
protected static String SHOW
           
protected  String title
           
 
Fields inherited from class cytoscape.util.CytoscapeAction
acceleratorSet, consoleName, keyCode, keyModifiers, menuIndex, preferredButtonGroup, preferredMenu, useCheckBoxMenuItem
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CytoPanelAction(CytoPanelName cp, boolean show, CytoPanelName parent)
           
 
Method Summary
 void actionPerformed(ActionEvent ev)
          Toggles the cytopanel state.
 void menuSelected(MenuEvent me)
          This dynamically sets the title of the menu based on the state of the CytoPanel.
 
Methods inherited from class cytoscape.util.CytoscapeAction
actionHelp, clone, completions, enableForNetwork, enableForNetworkAndView, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, initialize, isAccelerated, isInMenuBar, isInToolBar, menuCanceled, menuDeselected, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW

protected static final String SHOW
See Also:
Constant Field Values

HIDE

protected static final String HIDE
See Also:
Constant Field Values

title

protected String title

position

protected int position

parent

protected CytoPanelName parent
Constructor Detail

CytoPanelAction

public CytoPanelAction(CytoPanelName cp,
                       boolean show,
                       CytoPanelName parent)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent ev)
Toggles the cytopanel state.

Specified by:
actionPerformed in interface ActionListener
Specified by:
actionPerformed in class CytoscapeAction
Parameters:
ev - Triggering event - not used.

menuSelected

public void menuSelected(MenuEvent me)
This dynamically sets the title of the menu based on the state of the CytoPanel.

Specified by:
menuSelected in interface MenuListener
Overrides:
menuSelected in class CytoscapeAction
Parameters:
me - The triggering event.

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.