Class AddAnnotationCommand
- java.lang.Object
-
- org.eclipse.nebula.visualization.internal.xygraph.undo.AddAnnotationCommand
-
- All Implemented Interfaces:
IUndoableCommand
public class AddAnnotationCommand extends java.lang.Object implements IUndoableCommand
The undoable command to add an annotation.
-
-
Field Summary
Fields Modifier and Type Field Description private Annotation
annotation
private IXYGraph
xyGraph
-
Constructor Summary
Constructors Constructor Description AddAnnotationCommand(IXYGraph xyGraph, Annotation annotation)
Construct an "Add annotation command"
-
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.
-
-
-
Field Detail
-
xyGraph
private IXYGraph xyGraph
-
annotation
private Annotation annotation
-
-
Constructor Detail
-
AddAnnotationCommand
public AddAnnotationCommand(IXYGraph xyGraph, Annotation annotation)
Construct an "Add annotation command"- Parameters:
xyGraph
- the graphannotation
- annotation to be added
-
-
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 interfaceIUndoableCommand
-
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 interfaceIUndoableCommand
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-