cytoscape.editor.actions
Class DeleteAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycytoscape.util.CytoscapeAction
          extended bycytoscape.editor.actions.DeleteAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class DeleteAction
extends cytoscape.util.CytoscapeAction

action for deleting selected Cytoscape nodes and edges

Version:
1.0
Author:
Allan Kuchinsky, Agilent Technologies
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
DeleteAction()
          action for deleting selected Cytoscape nodes and edges
DeleteAction(java.lang.Object obj)
          perform deletion on the input object.
DeleteAction(java.lang.Object obj, java.lang.String label)
          perform deletion on the input object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          delete all selected nodes and edges groups selected nodes and edges and then deletes both sets (nodes and edges) for deleted nodes, also collects and deletes the edges that are adjacent to the node
static java.lang.String getTitle(java.lang.Object[] args, edu.umd.cs.piccolo.PNode node)
           
 
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

DeleteAction

public DeleteAction()
action for deleting selected Cytoscape nodes and edges


DeleteAction

public DeleteAction(java.lang.Object 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

DeleteAction

public DeleteAction(java.lang.Object obj,
                    java.lang.String label)
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
label - the name of the object to be deleted
Method Detail

getTitle

public static java.lang.String getTitle(java.lang.Object[] args,
                                        edu.umd.cs.piccolo.PNode node)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
delete all selected nodes and edges groups selected nodes and edges and then deletes both sets (nodes and edges) for deleted nodes, also collects and deletes the edges that are adjacent to the node