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

    Constructors
    Constructor
    Description
    SetBoundsCommand(AbstractWidgetModel widgetModel, org.eclipse.draw2d.geometry.Rectangle newBounds)
    Create a command that can resize and/or move a widget model.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     

    Methods inherited from class org.eclipse.gef.commands.Command

    canExecute, canRedo, canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 manipulate
      newBounds - the new size and location
  • Method Details

    • execute

      public void execute()
      Overrides:
      execute in class org.eclipse.gef.commands.Command
    • undo

      public void undo()
      Overrides:
      undo in class org.eclipse.gef.commands.Command