IUndoableCommand
public class AddAnnotationCommand extends java.lang.Object implements IUndoableCommand
Constructor | Description |
---|---|
AddAnnotationCommand(IXYGraph xyGraph,
Annotation annotation) |
Construct an "Add annotation command"
|
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.
|
public AddAnnotationCommand(IXYGraph xyGraph, Annotation annotation)
xyGraph
- the graphannotation
- annotation to be addedpublic void redo()
IUndoableCommand
redo
in interface IUndoableCommand
public void undo()
IUndoableCommand
undo
in interface IUndoableCommand
public java.lang.String toString()
toString
in class java.lang.Object