Package noaa.coastwatch.gui.visual
Class VisualOverlay
java.lang.Object
noaa.coastwatch.gui.visual.AbstractVisualObject
noaa.coastwatch.gui.visual.VisualOverlay
- All Implemented Interfaces:
ComponentProducer
,VisualObject
The
VisualOverlay
class represents an
EarthDataOverlay
object as a panel with modification
components.- Since:
- 3.1.7
- Author:
- Peter Hollemans
- See Also:
-
Field Summary
Fields inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
VALUE_PROPERTY
-
Constructor Summary
ConstructorDescriptionVisualOverlay
(EarthDataOverlay overlay) Creates a new visual overlay object using the specified overlay. -
Method Summary
Modifier and TypeMethodDescriptionGets the panel used to represent the overlay.getValue()
Gets the overlay value.boolean
Returns true as this visual object has a chooser.static void
Tests this class.void
Refreshes the component display to show the contents of the current overlay.void
Shows the overlay property chooser.Methods inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, setRestrictions
-
Constructor Details
-
VisualOverlay
Creates a new visual overlay object using the specified overlay.
-
-
Method Details
-
getComponent
Gets the panel used to represent the overlay. -
getValue
Gets the overlay value.- Returns:
- the value that this visual object currently holds.
-
hasChooser
public boolean hasChooser()Returns true as this visual object has a chooser.- Specified by:
hasChooser
in interfaceVisualObject
- Overrides:
hasChooser
in classAbstractVisualObject
- Returns:
- true if this object has a chooser, or false if not.
-
showChooser
public void showChooser()Shows the overlay property chooser.- Specified by:
showChooser
in interfaceVisualObject
- Overrides:
showChooser
in classAbstractVisualObject
-
refreshComponent
public void refreshComponent()Refreshes the component display to show the contents of the current overlay.- Specified by:
refreshComponent
in interfaceComponentProducer
- Overrides:
refreshComponent
in classAbstractVisualObject
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.
-