Enum Constant and Description |
---|
GRAY_SCALE |
GRAY_SCALE_WITH_ALPHA |
INDEX_COLOR |
TRUE_COLOR |
TRUE_COLOR_WITH_ALPHA |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ColorType |
fromInt(int value) |
java.lang.String |
getDescription() |
int |
getValue() |
java.lang.String |
toString() |
static ColorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorType GRAY_SCALE
public static final ColorType TRUE_COLOR
public static final ColorType INDEX_COLOR
public static final ColorType GRAY_SCALE_WITH_ALPHA
public static final ColorType TRUE_COLOR_WITH_ALPHA
public static final ColorType UNKNOWN
public static ColorType[] values()
for (ColorType c : ColorType.values()) System.out.println(c);
public static ColorType 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 getDescription()
public int getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<ColorType>
public static ColorType fromInt(int value)