public static enum AbstractColorPickerPreference.PreviewShape extends java.lang.Enum<AbstractColorPickerPreference.PreviewShape>
| Enum Constant and Description |
|---|
CIRCLE
If the preview is shaped as a circle.
|
SQUARE
If the preview is shaped as a square.
|
| Modifier and Type | Method and Description |
|---|---|
static AbstractColorPickerPreference.PreviewShape |
fromValue(int value)
Returns the shape, which corresponds to a specific value.
|
int |
getValue()
Returns the value of the shape.
|
static AbstractColorPickerPreference.PreviewShape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractColorPickerPreference.PreviewShape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractColorPickerPreference.PreviewShape CIRCLE
public static final AbstractColorPickerPreference.PreviewShape SQUARE
public static AbstractColorPickerPreference.PreviewShape[] values()
for (AbstractColorPickerPreference.PreviewShape c : AbstractColorPickerPreference.PreviewShape.values()) System.out.println(c);
public static AbstractColorPickerPreference.PreviewShape 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.PreviewShape fromValue(int value)
value - The value of the shape, which should be returned, as an Integer valueAbstractColorPickerPreference.PreviewShape