public static enum AbstractColorPickerPreference.ColorFormat extends java.lang.Enum<AbstractColorPickerPreference.ColorFormat>
| Enum Constant and Description |
|---|
ARGB
Formats the color by printing its alpha, red, green and blue components.
|
HEX_3_BYTES
Formats the color as a hexadecimal string, consisting of three bytes.
|
HEX_4_BYTES
Formats the color as a hexadecimal string, consisting of four bytes, including its alpha
component.
|
RGB
Formats the color by printing its red, green and blue components.
|
| Modifier and Type | Method and Description |
|---|---|
static AbstractColorPickerPreference.ColorFormat |
fromValue(int value)
Returns the format, which corresponds to a specific value.
|
int |
getValue()
Returns the value of the format.
|
static AbstractColorPickerPreference.ColorFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractColorPickerPreference.ColorFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractColorPickerPreference.ColorFormat RGB
public static final AbstractColorPickerPreference.ColorFormat ARGB
public static final AbstractColorPickerPreference.ColorFormat HEX_3_BYTES
public static final AbstractColorPickerPreference.ColorFormat HEX_4_BYTES
public static AbstractColorPickerPreference.ColorFormat[] values()
for (AbstractColorPickerPreference.ColorFormat c : AbstractColorPickerPreference.ColorFormat.values()) System.out.println(c);
public static AbstractColorPickerPreference.ColorFormat 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 final int getValue()
Integer valuepublic static AbstractColorPickerPreference.ColorFormat fromValue(int value)
value - The value of the format, which should be returned, as an Integer valueAbstractColorPickerPreference.ColorFormat