|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.commands.Command
net.officefloor.eclipse.common.editpolicies.layout.MovePositionalModelCommand
public class MovePositionalModelCommand
Moves a figure.
| Field Summary | |
|---|---|
protected AbstractOfficeFloorEditPart<?,?,?> |
editPart
Edit part to be moved. |
protected org.eclipse.draw2d.geometry.Point |
newLocation
New position for the figure. |
protected org.eclipse.draw2d.geometry.Point |
oldLocation
Current (old) position for the edit part. |
| Constructor Summary | |
|---|---|
MovePositionalModelCommand(AbstractOfficeFloorEditPart<?,?,?> editPart,
org.eclipse.draw2d.geometry.Point location)
Initiate to move a position model. |
|
| Method Summary | |
|---|---|
void |
execute()
|
protected void |
move(org.eclipse.draw2d.geometry.Point location)
Moves the edit part. |
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 |
| Field Detail |
|---|
protected final AbstractOfficeFloorEditPart<?,?,?> editPart
protected final org.eclipse.draw2d.geometry.Point newLocation
protected final org.eclipse.draw2d.geometry.Point oldLocation
| Constructor Detail |
|---|
public MovePositionalModelCommand(AbstractOfficeFloorEditPart<?,?,?> editPart,
org.eclipse.draw2d.geometry.Point location)
editPart - Edit part to move.location - Location to move the edit part.| Method Detail |
|---|
public void execute()
execute in class org.eclipse.gef.commands.Commandpublic void undo()
undo in class org.eclipse.gef.commands.Commandprotected void move(org.eclipse.draw2d.geometry.Point location)
constraints - Constraints for the edit part.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||