Class RemoveAnnotationCommand
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.undo.RemoveAnnotationCommand
-
- All Implemented Interfaces:
IUndoableCommand
public class RemoveAnnotationCommand extends java.lang.Object implements IUndoableCommand
The undoable command to remove an annotation.
-
-
Field Summary
Fields Modifier and Type Field Description private Annotationannotationprivate IXYGraphxyGraph
-
Constructor Summary
Constructors Constructor Description RemoveAnnotationCommand(IXYGraph xyGraph, Annotation annotation)Construct a "Remove annotation command"
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidredo()Restore the state of the target to the state after this command has been executed.java.lang.StringtoString()voidundo()Restore the state of the target to the state before this command has been executed.
-
-
-
Field Detail
-
xyGraph
private IXYGraph xyGraph
-
annotation
private Annotation annotation
-
-
Constructor Detail
-
RemoveAnnotationCommand
public RemoveAnnotationCommand(IXYGraph xyGraph, Annotation annotation)
Construct a "Remove annotation command"- Parameters:
xyGraph- the graphannotation- annotation to be removed
-
-
Method Detail
-
redo
public void redo()
Description copied from interface:IUndoableCommandRestore the state of the target to the state after this command has been executed.- Specified by:
redoin interfaceIUndoableCommand
-
undo
public void undo()
Description copied from interface:IUndoableCommandRestore the state of the target to the state before this command has been executed.- Specified by:
undoin interfaceIUndoableCommand
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-