org.tigris.gef.base
Class CmdInsertPoint

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

public class CmdInsertPoint
extends Cmd

Cmd to insert a new point after the selected (last manipulated) point of a FigPoly.

See Also:
FigPoly, Serialized Form

Field Summary
protected  int _selectedHandle
           
 
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
CmdInsertPoint()
           
CmdInsertPoint(int i)
           
 
Method Summary
 void doIt()
          Ask the current editor's selected Fig to Insert a point.
 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
 

Field Detail

_selectedHandle

protected int _selectedHandle
Constructor Detail

CmdInsertPoint

public CmdInsertPoint(int i)

CmdInsertPoint

public CmdInsertPoint()
Method Detail

doIt

public void doIt()
Ask the current editor's selected Fig to Insert a point.

Specified by:
doIt in class Cmd

undoIt

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

TODO Abandon this. We need the memento pattern for undo

Specified by:
undoIt in class Cmd