roneditor.ronview.commands
Class SetConstraintCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by roneditor.ronview.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  ronmodel.HLNode hlNode
           
private  org.eclipse.draw2d.geometry.Point newPosition
           
private  org.eclipse.draw2d.geometry.Point oldPosition
           
 
Constructor Summary
SetConstraintCommand()
           
 
Method Summary
 void execute()
           
 ronmodel.HLNode getHLNode()
           
 java.lang.String getLabel()
           
 org.eclipse.draw2d.geometry.Point getNewPosition()
           
 void redo()
           
 void setHLNode(ronmodel.HLNode hlNode)
           
 void setNewPosition(org.eclipse.draw2d.geometry.Point newPosition)
           
 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

hlNode

private ronmodel.HLNode hlNode
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

getHLNode

public ronmodel.HLNode getHLNode()
Returns:
the node

setHLNode

public void setHLNode(ronmodel.HLNode hlNode)
Parameters:
hlNode - the node to set