Class SaveStateCommand
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.undo.SaveStateCommand
-
- All Implemented Interfaces:
IUndoableCommand
- Direct Known Subclasses:
AxisPanOrZoomCommand,ZoomCommand
public abstract class SaveStateCommand extends java.lang.Object implements IUndoableCommand
Abstract base for an undo-able command that saves some state
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameName of the command, shown in undo/redo GUI
-
Constructor Summary
Constructors Constructor Description SaveStateCommand(java.lang.String name)Initialize Derived class should save the 'original' state.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidsaveState()Derived class should implement this to save the 'final' state.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.nebula.visualization.internal.xygraph.undo.IUndoableCommand
redo, undo
-
-
-
-
Method Detail
-
saveState
public abstract void saveState()
Derived class should implement this to save the 'final' state. Might be called multiple times to save intermediate states, and the state saved on the last call would be the 'redo' state.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- Name of the command, shown in undo/redo GUI
-
-