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.
-
-
Field Summary
Fields Modifier and Type Field Description private double
afterDx
private double
afterDy
private Annotation
annotation
private double
beforeDx
private double
beforeDy
-
Constructor Summary
Constructors Constructor Description MovingAnnotationLabelCommand(Annotation 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.void
setAfterMovingDxDy(double dx, double dy)
void
setBeforeMovingDxDy(double dx, double dy)
java.lang.String
toString()
void
undo()
Restore the state of the target to the state before this command has been executed.
-
-
-
Field Detail
-
annotation
private Annotation annotation
-
beforeDx
private double beforeDx
-
beforeDy
private double beforeDy
-
afterDx
private double afterDx
-
afterDy
private double afterDy
-
-
Constructor Detail
-
MovingAnnotationLabelCommand
public MovingAnnotationLabelCommand(Annotation annotation)
-
-
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
-
setBeforeMovingDxDy
public void setBeforeMovingDxDy(double dx, double dy)
-
setAfterMovingDxDy
public void setAfterMovingDxDy(double dx, double dy)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-