public enum LineCapType extends Enum<LineCapType>
指定一条线的端点样式。
线条端点样式取值与效果之间关系见表 24 默认值为 Butt
| 限定符和类型 | 方法和说明 |
|---|---|
static LineCapType |
getInstance(String type)
根据类型字符串获取类型枚举
默认值:Miter
|
static LineCapType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static LineCapType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final LineCapType Butt
public static final LineCapType Round
public static final LineCapType Square
public static LineCapType[] values()
for (LineCapType c : LineCapType.values()) System.out.println(c);
public static LineCapType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static LineCapType getInstance(String type)
默认值:Miter
type - 类型字符串IllegalArgumentException - 未知的线端点样式Copyright © 2021. All rights reserved.