org.tigris.gef.base
Class CmdDelete

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.gef.base.Cmd
          extended byorg.tigris.gef.base.CmdDelete
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class CmdDelete
extends Cmd

Cmd to delete Figs from view. This does not do anything to any underlying Net or other model, it is strictly a manipulation of graphical objects. Normally CmdDispose is the command users will want to execute.

See Also:
Fig, CmdDispose, Editor, LayerDiagram, Serialized Form

Field Summary
 
Fields inherited from class org.tigris.gef.base.Cmd
_args, _resource
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
CmdDelete()
           
 
Method Summary
 void doIt()
          Tell the selected Figs to remove themselves from the the diagram it is in (and thus all editors).
 void undoIt()
          Undo the Cmd using information stored during its execution.
 
Methods inherited from class org.tigris.gef.base.Cmd
about, actionPerformed, cmdAtIndex, containsArg, getArg, getArg, getName, getResource, register, registeredCmds, setArg, setName, setResource, shouldBeEnabled, updateEnabled
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, 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
 

Constructor Detail

CmdDelete

public CmdDelete()
Method Detail

doIt

public void doIt()
Tell the selected Figs to remove themselves from the the diagram it is in (and thus all editors).

Specified by:
doIt in class Cmd

undoIt

public void undoIt()
Description copied from class: Cmd
Undo the Cmd using information stored during its execution.

needs-more-work: This is not currently implemented.

Specified by:
undoIt in class Cmd