vocleditor.commands
Class SetConstraintCommand

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

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

Change the location of a graphical object.

Author:
(unknown), bjoern

Constructor Summary
SetConstraintCommand()
          The default constructor.
 
Method Summary
 void execute()
          Executes the command.
 void redo()
          Redo command execution.
 void setLocation(org.eclipse.draw2d.geometry.Rectangle r)
          Sets the location.
 void setObject(org.eclipse.emf.ecore.EObject object)
           
 void undo()
          Undo command execution.
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetConstraintCommand

public SetConstraintCommand()
The default constructor.

Method Detail

execute

public void execute()
Executes the command.

Overrides:
execute in class org.eclipse.gef.commands.Command

redo

public void redo()
Redo command execution.

Overrides:
redo in class org.eclipse.gef.commands.Command

setLocation

public void setLocation(org.eclipse.draw2d.geometry.Rectangle r)
Sets the location.

Parameters:
r - the location to set

setObject

public void setObject(org.eclipse.emf.ecore.EObject object)

undo

public void undo()
Undo command execution.

Overrides:
undo in class org.eclipse.gef.commands.Command