org.tigris.gef.base
Class CmdSelectNext
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.base.Cmd
org.tigris.gef.base.CmdSelectNext
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class CmdSelectNext
- extends Cmd
Cmd to select the next (or previous) Fig in the
editor's current view. This is very convienent for moving among
lots of small Figs. It also provides a simple example
of an Cmd that is bound to a key.
- See Also:
JGraph.initKeys()
,
Serialized Form
Field Summary |
static java.lang.String |
DIR
|
static java.lang.String |
DIR_NEXT
|
static java.lang.String |
DIR_PREV
|
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 |
Method Summary |
void |
doIt()
Perform whatever Cmd this Cmd is meant to do. |
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 |
DIR
public static final java.lang.String DIR
- See Also:
- Constant Field Values
DIR_NEXT
public static final java.lang.String DIR_NEXT
- See Also:
- Constant Field Values
DIR_PREV
public static final java.lang.String DIR_PREV
- See Also:
- Constant Field Values
CmdSelectNext
public CmdSelectNext()
CmdSelectNext
public CmdSelectNext(boolean next)
CmdSelectNext
public CmdSelectNext(java.lang.String d)
doIt
public void doIt()
- Description copied from class:
Cmd
- Perform whatever Cmd this Cmd is meant to do. Subclasses
should override this to do whatever is intended. When the Cmd
executes, it should store enough information to undo itself later
if needed.
- 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