Package noaa.coastwatch.gui.visual
Interface VisualObject
- All Superinterfaces:
ComponentProducer
- All Known Implementing Classes:
AbstractVisualObject,VisualArray,VisualBoolean,VisualChoice,VisualColor,VisualFont,VisualInteger,VisualOverlay,VisualString,VisualStroke,VisualSymbol
The
VisualObject interface defines the methods
required for objects to have a visual onscreen representation. The
onscreen version may be used to manipulate the properties of the
object.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener to receive property change events for when this object's value changes.voidFires a property change event for this object's value.getValue()Gets the object value.booleanGets the chooser flag.voidsetRestrictions(Object restrict) Sets restrictions on the allowed object values.voidShows the chooser dialog used to manipulate the object's properties.Methods inherited from interface noaa.coastwatch.gui.visual.ComponentProducer
getComponent, refreshComponent
-
Method Details
-
showChooser
void showChooser()Shows the chooser dialog used to manipulate the object's properties. In some cases, a visual object may not have a chooser, in which casehasChooser()returns false and this method has no effect. -
hasChooser
boolean hasChooser()Gets the chooser flag.- Returns:
- true if this object has a chooser, or false if not.
-
getValue
Object getValue()Gets the object value.- Returns:
- the value that this visual object currently holds.
-
addPropertyChangeListener
Adds a listener to receive property change events for when this object's value changes.- Parameters:
listener- the listener to add.
-
firePropertyChange
void firePropertyChange()Fires a property change event for this object's value. -
setRestrictions
Sets restrictions on the allowed object values.- Parameters:
restrict- the restictions, a custom object that is known to the child class.
-