be.ac.vub.cocompose.eclipse.commands
Class SetConstraintCommand

java.lang.Object
  extended byorg.eclipse.gef.commands.Command
      extended bybe.ac.vub.cocompose.eclipse.commands.SetConstraintCommand

public class SetConstraintCommand
extends Command

Command for setting size and position constraints.

Since:
0.2.0
Version:
0.2.0, 09/01/2004
Author:
Dennis Wagelaar

Constructor Summary
SetConstraintCommand()
           
 
Method Summary
 void execute()
           
 String getLabel()
           
 void redo()
           
 void setElement(RelationElement element)
          Sets the element to position and/or size.
 void setPosition(Point position)
          Sets the position.
 void setPosition(Rectangle position)
          Sets the position and size.
 void setSize(Dimension size)
          Sets the size.
 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
 

Constructor Detail

SetConstraintCommand

public SetConstraintCommand()
Method Detail

execute

public void execute()
See Also:
Command.execute()

getLabel

public String getLabel()
See Also:
Command.getLabel()

redo

public void redo()
See Also:
Command.redo()

undo

public void undo()
See Also:
Command.undo()

setPosition

public void setPosition(Rectangle position)
Sets the position and size.

Parameters:
position - - the positional data.

setPosition

public void setPosition(Point position)
Sets the position.

Parameters:
position - - the position.

setSize

public void setSize(Dimension size)
Sets the size.

Parameters:
size - - the size.

setElement

public void setElement(RelationElement element)
Sets the element to position and/or size.

Parameters:
element - - the element.