Class AxisPanOrZoomCommand

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void redo()
      Restore the state of the target to the state after this command has been executed.
      void saveState()
      Derived class should implement this to save the 'final' state.
      void undo()
      Restore the state of the target to the state before this command has been executed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • axis

        private final Axis axis
      • beforeRange

        private final Range beforeRange
      • afterRange

        private Range afterRange
    • Constructor Detail

      • AxisPanOrZoomCommand

        public AxisPanOrZoomCommand​(java.lang.String name,
                                    Axis axis)
    • Method Detail

      • redo

        public void redo()
        Description copied from interface: IUndoableCommand
        Restore the state of the target to the state after this command has been executed.
      • undo

        public void undo()
        Description copied from interface: IUndoableCommand
        Restore the state of the target to the state before this command has been executed.
      • saveState

        public void saveState()
        Description copied from class: SaveStateCommand
        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.
        Specified by:
        saveState in class SaveStateCommand