cytoscape.actions
Class DeleteAction
java.lang.Object
javax.swing.AbstractAction
cytoscape.util.CytoscapeAction
cytoscape.actions.DeleteAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action, MenuListener
public class DeleteAction
- extends CytoscapeAction
action for deleting selected Cytoscape nodes and edges
- Version:
- 1.0
- Author:
- Allan Kuchinsky, Agilent Technologies
- See Also:
- Serialized Form
Constructor Summary |
DeleteAction()
action for deleting selected Cytoscape nodes and edges |
DeleteAction(GraphObject obj)
perform deletion on the input object. if object is a Node, then this will
result in also deleting the edges adjacent to the node |
Method Summary |
void |
actionPerformed(ActionEvent ae)
Delete all selected nodes, edges, edges adjacent to the selected nodes,
and any nodes/edges passed as arguments. |
void |
menuSelected(MenuEvent me)
This method can be overridden by individual actions to set the state of menu items
based on whatever unique circumstances that menu option cares about. |
Methods inherited from class cytoscape.util.CytoscapeAction |
actionHelp, clone, completions, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, isAccelerated, isInMenuBar, isInToolBar, menuCanceled, menuDeselected, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs |
ACTION_TITLE
public static final String ACTION_TITLE
- See Also:
- Constant Field Values
DeleteAction
public DeleteAction()
- action for deleting selected Cytoscape nodes and edges
DeleteAction
public DeleteAction(GraphObject obj)
- perform deletion on the input object. if object is a Node, then this will
result in also deleting the edges adjacent to the node
- Parameters:
obj
- the object to be deleted
actionPerformed
public void actionPerformed(ActionEvent ae)
- Delete all selected nodes, edges, edges adjacent to the selected nodes,
and any nodes/edges passed as arguments.
- Specified by:
actionPerformed
in interface ActionListener
- Specified by:
actionPerformed
in class CytoscapeAction
- Parameters:
ae
- DOCUMENT ME!
menuSelected
public void menuSelected(MenuEvent me)
- Description copied from class:
CytoscapeAction
- This method can be overridden by individual actions to set the state of menu items
based on whatever unique circumstances that menu option cares about. If not overridden,
this method does nothing.
- Specified by:
menuSelected
in interface MenuListener
- Overrides:
menuSelected
in class CytoscapeAction
- Parameters:
me
- The triggering event.