Class MovingAnnotationLabelCommand
java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.undo.MovingAnnotationLabelCommand
- All Implemented Interfaces:
IUndoableCommand
public class MovingAnnotationLabelCommand extends java.lang.Object implements IUndoableCommand
The command moving an annotation label.
-
Constructor Summary
Constructors Constructor Description MovingAnnotationLabelCommand(Annotation annotation) -
Method Summary
Modifier and Type Method Description voidredo()Restore the state of the target to the state after this command has been executed.voidsetAfterMovingDxDy(double dx, double dy)voidsetBeforeMovingDxDy(double dx, double dy)java.lang.StringtoString()voidundo()Restore the state of the target to the state before this command has been executed.
-
Constructor Details
-
Method Details
-
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
-
setBeforeMovingDxDy
public void setBeforeMovingDxDy(double dx, double dy) -
setAfterMovingDxDy
public void setAfterMovingDxDy(double dx, double dy) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-