public enum ColorScalePalette extends java.lang.Enum<ColorScalePalette>
ColorScale
s. To get a color scale
from a literal, use getColorScale()
.Enum Constant and Description |
---|
Fire |
Grayscale |
PurpleHaze |
Rainbow1 |
Rainbow2 |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name
A pretty-printed name for the palette.
|
Modifier and Type | Method and Description |
---|---|
ColorScale |
getColorScale()
Constructs a new color scale based on the palette's RGB and alpha values.
|
static ColorScalePalette |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorScalePalette[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorScalePalette Rainbow1
public static final ColorScalePalette Rainbow2
public static final ColorScalePalette PurpleHaze
public static final ColorScalePalette Fire
public static final ColorScalePalette Grayscale
public static ColorScalePalette[] values()
for (ColorScalePalette c : ColorScalePalette.values()) System.out.println(c);
public static ColorScalePalette 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 ColorScale getColorScale()
ColorScale
object.