org.apache.pivot.wtk
Enum GraphicsUtilities.PaintType
java.lang.Object
java.lang.Enum<GraphicsUtilities.PaintType>
org.apache.pivot.wtk.GraphicsUtilities.PaintType
- All Implemented Interfaces:
- Serializable, Comparable<GraphicsUtilities.PaintType>
- Enclosing class:
- GraphicsUtilities
public static enum GraphicsUtilities.PaintType
- extends Enum<GraphicsUtilities.PaintType>
Enumeration representing a paint type.
SOLID_COLOR
public static final GraphicsUtilities.PaintType SOLID_COLOR
GRADIENT
public static final GraphicsUtilities.PaintType GRADIENT
LINEAR_GRADIENT
public static final GraphicsUtilities.PaintType LINEAR_GRADIENT
RADIAL_GRADIENT
public static final GraphicsUtilities.PaintType RADIAL_GRADIENT
values
public static GraphicsUtilities.PaintType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (GraphicsUtilities.PaintType c : GraphicsUtilities.PaintType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GraphicsUtilities.PaintType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null