Class AxisPanOrZoomCommand
java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.undo.SaveStateCommand
org.eclipse.nebula.visualization.internal.xygraph.undo.AxisPanOrZoomCommand
- All Implemented Interfaces:
IUndoableCommand
public class AxisPanOrZoomCommand extends SaveStateCommand
The undo command for panning or zooming one axis.
-
Constructor Summary
Constructors Constructor Description AxisPanOrZoomCommand(java.lang.String name, Axis axis) -
Method Summary
Modifier and Type Method Description voidredo()Restore the state of the target to the state after this command has been executed.voidsaveState()Derived class should implement this to save the 'final' state.voidundo()Restore the state of the target to the state before this command has been executed.Methods inherited from class org.eclipse.nebula.visualization.internal.xygraph.undo.SaveStateCommand
toString
-
Constructor Details
-
Method Details
-
redo
public void redo()Description copied from interface:IUndoableCommandRestore the state of the target to the state after this command has been executed. -
undo
public void undo()Description copied from interface:IUndoableCommandRestore the state of the target to the state before this command has been executed. -
saveState
public void saveState()Description copied from class:SaveStateCommandDerived 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.- Specified by:
saveStatein classSaveStateCommand
-