public static enum Decorators.StrokeDecorator extends java.lang.Enum<Decorators.StrokeDecorator> implements Decorators.Decorator, Decorators.HasLabel, Decorators.HasIcon
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.Icon |
icon |
private java.lang.String |
label |
private java.awt.Stroke |
stroke |
| Modifier and Type | Method and Description |
|---|---|
static Decorators.StrokeDecorator |
fromStroke(java.awt.Stroke stroke) |
javax.swing.Icon |
toIcon() |
java.lang.String |
toLabel() |
java.awt.Stroke |
toStroke() |
java.lang.Object |
toValue() |
static Decorators.StrokeDecorator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Decorators.StrokeDecorator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Decorators.StrokeDecorator SOLID
public static final Decorators.StrokeDecorator SOLID2
public static final Decorators.StrokeDecorator SOLID3
public static final Decorators.StrokeDecorator DASH
public static final Decorators.StrokeDecorator DOTTED
private final java.awt.Stroke stroke
private final javax.swing.Icon icon
private final java.lang.String label
public static Decorators.StrokeDecorator[] values()
for (Decorators.StrokeDecorator c : Decorators.StrokeDecorator.values()) System.out.println(c);
public static Decorators.StrokeDecorator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.awt.Stroke toStroke()
public javax.swing.Icon toIcon()
toIcon in interface Decorators.HasIconpublic java.lang.String toLabel()
toLabel in interface Decorators.HasLabelpublic java.lang.Object toValue()
toValue in interface Decorators.Decoratorpublic static Decorators.StrokeDecorator fromStroke(java.awt.Stroke stroke)