public static enum Paint.Type extends Enum<Paint.Type>
Enum Constant and Description |
---|
COLOR |
IMAGE_PATTERN |
LINEAR_GRADIENT |
RADIAL_GRADIENT |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
boolean |
isGradient() |
boolean |
isImagePattern() |
static Paint.Type |
valueOf(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
public static Paint.Type[] values()
for (Paint.Type c : Paint.Type.values()) System.out.println(c);
public static Paint.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public boolean isGradient()
public boolean isImagePattern()
Copyright © 2020. All rights reserved.