edu.usc.cse.desi.command
Class ConstraintCommand
java.lang.Object
org.eclipse.gef.commands.Command
edu.usc.cse.desi.command.ConstraintCommand
- public class ConstraintCommand
- extends org.eclipse.gef.commands.Command
This command is issued when someone wants to change the size or shape of
an on-screen object. As you notice, when the command is executed, it changes
the model, not the view. The view gets changed when it is notified of the change
by the model.
- Author:
- Nels
Started Mar 3, 2004
| Fields inherited from class org.eclipse.gef.commands.Command |
|
| 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 |
oldLocation
private org.eclipse.draw2d.geometry.Point oldLocation
newLocation
private org.eclipse.draw2d.geometry.Point newLocation
oldSize
private org.eclipse.draw2d.geometry.Dimension oldSize
newSize
private org.eclipse.draw2d.geometry.Dimension newSize
model
private AbstractNodeViewModel model
ConstraintCommand
public ConstraintCommand()
ConstraintCommand
public ConstraintCommand(java.lang.String label)
execute
public void execute()
redo
public void redo()
undo
public void undo()
setLocation
public void setLocation(org.eclipse.draw2d.geometry.Rectangle r)
setLocation
public void setLocation(org.eclipse.draw2d.geometry.Point p)
setSize
public void setSize(org.eclipse.draw2d.geometry.Dimension d)
setModel
public void setModel(AbstractNodeViewModel model)