|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractCommand
org.jhotdraw.util.UndoCommand
Command to undo the latest change in the drawing. Undo activities can be undone only once, therefore they are not added to the undo stack again (redo activities can be added to the redo stack again, because they can be redone several times, every time pushing a corresponding undo activity as well).
Nested Class Summary |
Nested classes inherited from class org.jhotdraw.standard.AbstractCommand |
AbstractCommand.EventDispatcher |
Constructor Summary | |
UndoCommand(java.lang.String name,
DrawingEditor newDrawingEditor)
Constructs a properties command. |
Method Summary | |
void |
execute()
Executes the command. |
boolean |
isExecutableWithView()
Used in enabling the undo menu item. |
Methods inherited from class org.jhotdraw.standard.AbstractCommand |
addCommandListener, createEventDispatcher, createViewChangeListener, dispose, figureSelectionChanged, getDrawingEditor, getEventDispatcher, getUndoActivity, isExecutable, isViewRequired, name, removeCommandListener, setName, setUndoActivity, view, viewCreated, viewDestroying, viewSelectionChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UndoCommand(java.lang.String name, DrawingEditor newDrawingEditor)
name
- the command namenewDrawingEditor
- the DrawingEditor which manages the viewsMethod Detail |
public void execute()
AbstractCommand
execute
in interface Command
execute
in class AbstractCommand
public boolean isExecutableWithView()
isExecutableWithView
in class AbstractCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |