Package org.csstudio.opibuilder.util
Class GuideUtil
java.lang.Object
org.csstudio.opibuilder.util.GuideUtil
A class, which contains the information which
AbstractWidgetModel
is attached to which vertical and
horizontal Guide.-
Method Summary
Modifier and TypeMethodDescriptiongetGuide
(AbstractWidgetModel model, boolean horizontal) Returns the guide to which the givenAbstractWidgetModel
is attached in the given orientation.static GuideUtil
Returns the instance of the GuideUtil.void
removeGuide
(AbstractWidgetModel model, boolean horizontal) Removes the vertical or the horizontal Guide of aAbstractWidgetModel
depending on the boolean flag.void
setGuide
(AbstractWidgetModel model, GuideModel guide) Sets the Guide for the givenAbstractWidgetModel
.
-
Method Details
-
getInstance
Returns the instance of the GuideUtil.- Returns:
- GuideUtil The GuideUtil
-
setGuide
Sets the Guide for the givenAbstractWidgetModel
. Regarding if the guide is vertical or horizontal- Parameters:
model
- The AbstractWidgetModel, which is attached to the guideguide
- The guide (may not be null)
-
removeGuide
Removes the vertical or the horizontal Guide of aAbstractWidgetModel
depending on the boolean flag.- Parameters:
model
- The AbstractWidgetModel, which is attached to the guidehorizontal
- The orientation of the guide, which should be removed
-
getGuide
Returns the guide to which the givenAbstractWidgetModel
is attached in the given orientation.- Parameters:
model
- The AbstractWidgetModel, which is attached to the guidehorizontal
- 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.
-