public class MovingAnnotationCommand extends java.lang.Object implements IUndoableCommand
Constructor and Description |
---|
MovingAnnotationCommand(Annotation annotation) |
Modifier and Type | Method and Description |
---|---|
void |
redo()
Restore the state of the target to the state after this command has been
executed.
|
void |
setAfterDxDy(double dx,
double dy) |
void |
setAfterMovePosition(org.eclipse.draw2d.geometry.Point afterMovePosition) |
void |
setAfterMoveSnappedSample(ISample afterMoveSnappedSample) |
void |
setBeforeDxDy(double dx,
double dy) |
void |
setBeforeMovePosition(org.eclipse.draw2d.geometry.Point beforeMovePosition) |
void |
setBeforeMoveSnappedSample(ISample beforeMoveSnappedSample) |
java.lang.String |
toString() |
void |
undo()
Restore the state of the target to the state before this command has been
executed.
|
public MovingAnnotationCommand(Annotation annotation)
public void redo()
IUndoableCommand
redo
in interface IUndoableCommand
public void undo()
IUndoableCommand
undo
in interface IUndoableCommand
public void setBeforeDxDy(double dx, double dy)
public void setAfterDxDy(double dx, double dy)
public void setBeforeMovePosition(org.eclipse.draw2d.geometry.Point beforeMovePosition)
beforeMovePosition
- the beforeMovePosition to setpublic void setAfterMovePosition(org.eclipse.draw2d.geometry.Point afterMovePosition)
afterMovePosition
- the afterMovePosition to setpublic void setBeforeMoveSnappedSample(ISample beforeMoveSnappedSample)
beforeMoveSnappedSample
- the beforeMoveSnappedSample to setpublic void setAfterMoveSnappedSample(ISample afterMoveSnappedSample)
afterMoveSnappedSample
- the afterMoveSnappedSample to setpublic java.lang.String toString()
toString
in class java.lang.Object