public enum JoinStyle extends Enum<JoinStyle> implements Key
Enum Constant and Description |
---|
bevel
Fills an additional triangular area between the common end point of connected segments, and the separate outside
rectangular corners of each segment.
|
miter
Connected segments are joined by extending their outside edges to connect at a single point, with the effect of filling
an additional shaped area.
This is the default. |
round
Rounds off the corners of a shape by filling an additional sector of disc centered at the common end point of connected
segments.
The radius for these rounded corners is equal to the line width. |
Modifier and Type | Method and Description |
---|---|
static JoinStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JoinStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JoinStyle bevel
public static final JoinStyle round
public static final JoinStyle miter
public static JoinStyle[] values()
for (JoinStyle c : JoinStyle.values()) System.out.println(c);
public static JoinStyle 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