Serializable, Comparable<Paint.StrokeCap>public static enum Paint.StrokeCap extends Enum<Paint.StrokeCap>
The stroke cap is usually seen at the start and end points of the open path contour.
| 枚举常量 | 说明 |
|---|---|
BUTT_CAP |
Each drawing point of the paint stroke is in square, with the start point of the drawing line at the
leftmost edge of the square and end point at the rightmost edge.
|
ROUND_CAP |
Each drawing point of the paint stroke is in dot, with the start and end points of the drawing line at
the center of the dot.
|
SQUARE_CAP |
Each drawing point of the paint stroke is in square, with the start and end points of the drawing line
at the center of the square.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
value() |
Obtains the enumeration identifier of the stroke cap of this
Paint. |
static Paint.StrokeCap |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static Paint.StrokeCap[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (Paint.StrokeCap c : Paint.StrokeCap.values()) System.out.println(c); |
public static final Paint.StrokeCap BUTT_CAP
public static final Paint.StrokeCap ROUND_CAP
public static final Paint.StrokeCap SQUARE_CAP
public static Paint.StrokeCap[] values()
for (Paint.StrokeCap c : Paint.StrokeCap.values()) System.out.println(c);
public static Paint.StrokeCap valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
Paint.Paint.