Class ChangeGuideCommand

java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.ChangeGuideCommand

public final class ChangeGuideCommand extends org.eclipse.gef.commands.Command
A command to change a Guide.
  • Constructor Details

    • ChangeGuideCommand

      public ChangeGuideCommand(AbstractWidgetModel model, boolean horizontalGuide)
      Constructor.
      Parameters:
      model - The AbstractWidgetModel
      horizontalGuide - The horizontal guide
  • Method Details

    • changeGuide

      protected void changeGuide(GuideModel newGuide, int newAlignment)
      Changes the guide.
      Parameters:
      newGuide - The new guide
      newAlignment - The new alignment
    • execute

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

      public void redo()
      Overrides:
      redo in class org.eclipse.gef.commands.Command
    • setNewGuide

      public void setNewGuide(GuideModel guide, int alignment)
      Sets the new guide.
      Parameters:
      guide - The new guide
      alignment - The new alignment
    • undo

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