roneditor.ronview.commands
Class SetConstraintCommand
java.lang.Object
org.eclipse.gef.commands.Command
roneditor.ronview.commands.SetConstraintCommand
public class SetConstraintCommand
- extends org.eclipse.gef.commands.Command
Change the location of a graphical object.
Methods inherited from class org.eclipse.gef.commands.Command |
canExecute, canUndo, chain, dispose, getDebugLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Command_Label_Resize
private static final java.lang.String Command_Label_Resize
- See Also:
- Constant Field Values
newPosition
private org.eclipse.draw2d.geometry.Point newPosition
oldPosition
private org.eclipse.draw2d.geometry.Point oldPosition
hlNode
private ronmodel.HLNode hlNode
SetConstraintCommand
public SetConstraintCommand()
execute
public void execute()
- Overrides:
execute
in class org.eclipse.gef.commands.Command
getLabel
public java.lang.String getLabel()
- Overrides:
getLabel
in class org.eclipse.gef.commands.Command
redo
public void redo()
- Overrides:
redo
in class org.eclipse.gef.commands.Command
undo
public void undo()
- Overrides:
undo
in class org.eclipse.gef.commands.Command
getNewPosition
public org.eclipse.draw2d.geometry.Point getNewPosition()
- Returns:
- the newPosition
setNewPosition
public void setNewPosition(org.eclipse.draw2d.geometry.Point newPosition)
- Parameters:
newPosition
- the newPosition to set
getHLNode
public ronmodel.HLNode getHLNode()
- Returns:
- the node
setHLNode
public void setHLNode(ronmodel.HLNode hlNode)
- Parameters:
hlNode
- the node to set