Class RemoveAnnotationCommand

  • All Implemented Interfaces:
    IUndoableCommand

    public class RemoveAnnotationCommand
    extends java.lang.Object
    implements IUndoableCommand
    The undoable command to remove an annotation.
    • 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.
      java.lang.String toString()  
      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
    • Constructor Detail

      • RemoveAnnotationCommand

        public RemoveAnnotationCommand​(IXYGraph xyGraph,
                                       Annotation annotation)
        Construct a "Remove annotation command"
        Parameters:
        xyGraph - the graph
        annotation - annotation to be removed
    • 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.
        Specified by:
        redo in interface IUndoableCommand
      • undo

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object