Package noaa.coastwatch.gui.visual
Class VisualColor
java.lang.Object
noaa.coastwatch.gui.visual.AbstractVisualObject
noaa.coastwatch.gui.visual.VisualColor
- All Implemented Interfaces:
ComponentProducer
,VisualObject
The
VisualColor
class represents a color as a button
with an icon of the color. When the button is pressed, a
JColorChooser
appears that allows the user to select
a color.- Since:
- 3.1.7
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
VALUE_PROPERTY
-
Constructor Summary
ConstructorDescriptionVisualColor
(Color color) Creates a new visual color object using the specified color. -
Method Summary
Methods inherited from class noaa.coastwatch.gui.visual.AbstractVisualObject
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, setRestrictions, showChooser
-
Constructor Details
-
VisualColor
Creates a new visual color object using the specified color.
-
-
Method Details
-
getComponent
Gets the button used to represent the color. -
getValue
Gets the color value.- Returns:
- the value that this visual object currently holds.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.
-