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
  • Constructor Summary

    Constructors 
    Constructor Description
    SaveStateCommand​(java.lang.String name)
    Initialize Derived class should save the 'original' state.
  • Method Summary

    Modifier and Type Method Description
    abstract void saveState()
    Derived class should implement this to save the 'final' state.
    java.lang.String toString()  

    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
  • Constructor Details

    • SaveStateCommand

      public SaveStateCommand​(java.lang.String name)
      Initialize Derived class should save the 'original' state.
  • Method Details

    • 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:
      toString in class java.lang.Object
      Returns:
      Name of the command, shown in undo/redo GUI