org.topbraidcomposer.gef.diagram.commands
Class SetConstraintCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topbraidcomposer.gef.diagram.commands.SetConstraintCommand

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


Constructor Summary
SetConstraintCommand(NodeModelEditPart editPart, org.eclipse.draw2d.geometry.Rectangle newBounds)
           
 
Method Summary
 void execute()
           
 void redo()
           
 void setBounds(org.eclipse.draw2d.geometry.Rectangle r)
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetConstraintCommand

public SetConstraintCommand(NodeModelEditPart editPart,
                            org.eclipse.draw2d.geometry.Rectangle newBounds)
Method Detail

setBounds

public void setBounds(org.eclipse.draw2d.geometry.Rectangle r)

execute

public void execute()
Overrides:
execute 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