Package org.csstudio.opibuilder.model
Class RulerModel
java.lang.Object
org.csstudio.opibuilder.model.RulerModel
- All Implemented Interfaces:
Serializable
The model for a Ruler.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGuide
(GuideModel guide) Adds the given guide to this ruler.void
Adds a PropertyChangeListener to this guide.Returns a List of all guides, contained by this ruler.boolean
Returns if this guide has a horizontal orientation.void
removeGuide
(GuideModel guide) Removes the given guide from this ruler.void
Removes the PropertyChangeListener from this guide.
-
Field Details
-
PROPERTY_CHILDREN_CHANGED
The ID for the children changed property.- See Also:
-
-
Constructor Details
-
RulerModel
public RulerModel(boolean isHorizontal) Constructor.- Parameters:
isHorizontal
- The orientation of this ruler
-
-
Method Details
-
addGuide
Adds the given guide to this ruler. Notifies all registered listeners- Parameters:
guide
- The guide to add
-
removeGuide
Removes the given guide from this ruler. Notifies all registered listeners- Parameters:
guide
- The guide to remove
-
addPropertyChangeListener
Adds a PropertyChangeListener to this guide.- Parameters:
listener
- The listener to add
-
removePropertyChangeListener
Removes the PropertyChangeListener from this guide.- Parameters:
listener
- The listener to remove
-
getGuides
Returns a List of all guides, contained by this ruler.- Returns:
- List A List of GuideModels
-
isHorizontal
public boolean isHorizontal()Returns if this guide has a horizontal orientation.- Returns:
- boolean True, if this guide has a horizontal orientation, false otherwise
-