roneditor.objectnetview.commands
Class SetConstraintCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by roneditor.objectnetview.commands.SetConstraintCommand

public class SetConstraintCommand
extends org.eclipse.gef.commands.Command

Change the location of a graphical object.


Field Summary
private static java.lang.String Command_Label_Resize
           
private  org.eclipse.draw2d.geometry.Point newPosition
           
private  org.eclipse.draw2d.geometry.Point oldPosition
           
private  ronmodel.ONNode onNode
           
 
Constructor Summary
SetConstraintCommand()
           
 
Method Summary
 void execute()
           
 java.lang.String getLabel()
           
 org.eclipse.draw2d.geometry.Point getNewPosition()
           
 ronmodel.ONNode getONNode()
           
 void redo()
           
 void setNewPosition(org.eclipse.draw2d.geometry.Point newPosition)
           
 void setONNode(ronmodel.ONNode onNode)
           
 void undo()
           
 
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
 

Field Detail

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

onNode

private ronmodel.ONNode onNode
Constructor Detail

SetConstraintCommand

public SetConstraintCommand()
Method Detail

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

getONNode

public ronmodel.ONNode getONNode()
Returns:
the node

setONNode

public void setONNode(ronmodel.ONNode onNode)
Parameters:
onNode - the node to set