public enum CapStyle extends Enum<CapStyle> implements Key
Enum Constant and Description |
---|
butt
The ends of lines are squared off at the end points.
Default. |
round
The ends of lines are rounded.
|
square
The ends of lines are squared off by adding a box with an equal width and half the height of the line's thickness.
|
Modifier and Type | Method and Description |
---|---|
static CapStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CapStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CapStyle butt
public static final CapStyle round
public static final CapStyle square
public static CapStyle[] values()
for (CapStyle c : CapStyle.values()) System.out.println(c);
public static CapStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null