Package org.csstudio.opibuilder.commands
Class SetBoundsCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.SetBoundsCommand
public final class SetBoundsCommand
extends org.eclipse.gef.commands.Command
A command, which applies position and location changes to widget models.
-
Constructor Summary
ConstructorDescriptionSetBoundsCommand
(AbstractWidgetModel widgetModel, org.eclipse.draw2d.geometry.Rectangle newBounds) Create a command that can resize and/or move a widget model. -
Method Summary
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canRedo, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
-
Constructor Details
-
SetBoundsCommand
public SetBoundsCommand(AbstractWidgetModel widgetModel, org.eclipse.draw2d.geometry.Rectangle newBounds) Create a command that can resize and/or move a widget model.- Parameters:
widgetModel
- the widget model to manipulatenewBounds
- the new size and location
-
-
Method Details
-
execute
public void execute()- Overrides:
execute
in classorg.eclipse.gef.commands.Command
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.Command
-