|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.commands.Command uk.ac.kcl.cch.jb.pliny.commands.LinkableObjectMoveCommand
moves the display position and resizes a LinkableObject
in its reference area. This command is not used
when the drag results in LinkableObject having to change owning resource.
Constructor Summary | |
LinkableObjectMoveCommand(LinkableObject object,
org.eclipse.draw2d.geometry.Rectangle oldBounds,
org.eclipse.draw2d.geometry.Rectangle newBounds)
creates command to move the given object to the location and size given by the newBounds. |
Method Summary | |
void |
execute()
|
void |
undo()
|
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinkableObjectMoveCommand(LinkableObject object, org.eclipse.draw2d.geometry.Rectangle oldBounds, org.eclipse.draw2d.geometry.Rectangle newBounds)
object
- object to be moved/resizedoldBounds
- old position/size (saved for undo)newBounds
- new position/sizeMethod Detail |
public void execute()
public void undo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |