public class VisualStroke extends AbstractVisualObject
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.VALUE_PROPERTY
Constructor and Description |
---|
VisualStroke(java.awt.Stroke stroke)
Creates a new visual stroke object using the specified stroke.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent()
Gets the button used to represent the stroke.
|
java.lang.Object |
getValue()
Gets the stroke value.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
addPropertyChangeListener, firePropertyChange, firePropertyChange, hasChooser, refreshComponent, setRestrictions, showChooser
public VisualStroke(java.awt.Stroke stroke)
public java.awt.Component getComponent()
public java.lang.Object getValue()
public static void main(java.lang.String[] argv)
argv
- the array of command line parameters.