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
ConstructorsConstructorDescriptionVisualOverlay(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.booleanReturns true as this visual object has a chooser.static voidTests this class.voidRefreshes the component display to show the contents of the current overlay.voidShows 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:
hasChooserin interfaceVisualObject- Overrides:
hasChooserin classAbstractVisualObject- Returns:
- true if this object has a chooser, or false if not.
-
showChooser
public void showChooser()Shows the overlay property chooser.- Specified by:
showChooserin interfaceVisualObject- Overrides:
showChooserin classAbstractVisualObject
-
refreshComponent
public void refreshComponent()Refreshes the component display to show the contents of the current overlay.- Specified by:
refreshComponentin interfaceComponentProducer- Overrides:
refreshComponentin classAbstractVisualObject
-
main
Tests this class.- Parameters:
argv- the array of command line parameters.
-