Serializable, Comparable<Paint.ShaderType>public static enum Paint.ShaderType extends Enum<Paint.ShaderType>
| 枚举常量 | 说明 |
|---|---|
GROUP_SHADER |
Indicates the group shader.
|
LINEAR_SHADER |
Indicates that colors in the paint are shaded in linear manner.
|
PIXELMAP_SHADER |
Indicates the pixelmap gradient shader.
|
RADIAL_SHADER |
Indicates that the colors in the paint are shaded in radial manner around a center point.
|
SWEEP_SHADER |
Indicates that the colors in the paint are shaded in sweep manner around a center point.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
value() |
Obtains the enumeration identifier of the shader type of this
Paint. |
static Paint.ShaderType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static Paint.ShaderType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (Paint.ShaderType c : Paint.ShaderType.values()) System.out.println(c); |
public static final Paint.ShaderType LINEAR_SHADER
public static final Paint.ShaderType SWEEP_SHADER
public static final Paint.ShaderType RADIAL_SHADER
public static final Paint.ShaderType PIXELMAP_SHADER
public static final Paint.ShaderType GROUP_SHADER
public static Paint.ShaderType[] values()
for (Paint.ShaderType c : Paint.ShaderType.values()) System.out.println(c);
public static Paint.ShaderType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
Paint.Paint.