public static enum Paint.Type extends java.lang.Enum<Paint.Type>
| Enum Constant and Description |
|---|
COLOR |
IMAGE_PATTERN |
LINEAR_GRADIENT |
RADIAL_GRADIENT |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isGradient |
private boolean |
isImagePattern |
private java.lang.String |
name |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
boolean |
isGradient() |
boolean |
isImagePattern() |
static Paint.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Paint.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Paint.Type COLOR
public static final Paint.Type LINEAR_GRADIENT
public static final Paint.Type RADIAL_GRADIENT
public static final Paint.Type IMAGE_PATTERN
private java.lang.String name
private boolean isGradient
private boolean isImagePattern
public static Paint.Type[] values()
for (Paint.Type c : Paint.Type.values()) System.out.println(c);
public static Paint.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public boolean isGradient()
public boolean isImagePattern()