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