Class GuideUtil

java.lang.Object
org.csstudio.opibuilder.util.GuideUtil

public final class GuideUtil extends Object
A class, which contains the information which AbstractWidgetModel is attached to which vertical and horizontal Guide.
  • Method Details

    • getInstance

      public static GuideUtil getInstance()
      Returns the instance of the GuideUtil.
      Returns:
      GuideUtil The GuideUtil
    • setGuide

      public void setGuide(AbstractWidgetModel model, GuideModel guide)
      Sets the Guide for the given AbstractWidgetModel. Regarding if the guide is vertical or horizontal
      Parameters:
      model - The AbstractWidgetModel, which is attached to the guide
      guide - The guide (may not be null)
    • removeGuide

      public void removeGuide(AbstractWidgetModel model, boolean horizontal)
      Removes the vertical or the horizontal Guide of a AbstractWidgetModel depending on the boolean flag.
      Parameters:
      model - The AbstractWidgetModel, which is attached to the guide
      horizontal - The orientation of the guide, which should be removed
    • getGuide

      public GuideModel getGuide(AbstractWidgetModel model, boolean horizontal)
      Returns the guide to which the given AbstractWidgetModel is attached in the given orientation.
      Parameters:
      model - The AbstractWidgetModel, which is attached to the guide
      horizontal - The orientation of the guide, which should be returned
      Returns:
      GuideModel The guide to which the given AbstractWidgetModel is attached in the given orientation or null.