Serializable, Comparable<Paint.Join>public static enum Paint.Join extends Enum<Paint.Join>
The Join specifies how different segments of a stroked path are joined.
| 枚举常量 | 说明 |
|---|---|
BEVEL_JOIN |
Indicates that a straight line is used to form a beveled appearance between the segments of a stroked path.
|
MITER_JOIN |
Indicates that a sharp corner is used to join the segments of a stroked path.
|
ROUND_JOIN |
Indicates that a round corner is used to join the segments of a stroked path.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
value() |
Obtains the enumeration identifier of the stroke join styles of this
Paint. |
static Paint.Join |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static Paint.Join[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (Paint.Join c : Paint.Join.values()) System.out.println(c); |
public static final Paint.Join MITER_JOIN
public static final Paint.Join ROUND_JOIN
public static final Paint.Join BEVEL_JOIN
public static Paint.Join[] values()
for (Paint.Join c : Paint.Join.values()) System.out.println(c);
public static Paint.Join valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
Paint.Paint.