public static enum ColorMap.PredefinedColorMap extends java.lang.Enum<ColorMap.PredefinedColorMap>
Enum Constant and Description |
---|
ColorSpectrum |
Cool |
GrayScale |
Hot |
JET |
None |
Shaded |
Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.swt.graphics.RGB[] |
colors |
(package private) java.lang.String |
name |
(package private) double[] |
values |
Modifier and Type | Method and Description |
---|---|
static ColorMap.PredefinedColorMap |
fromIndex(int index) |
java.util.LinkedHashMap<java.lang.Double,org.eclipse.swt.graphics.RGB> |
getMap() |
static java.lang.String[] |
getStringValues() |
static int |
toIndex(ColorMap.PredefinedColorMap p) |
java.lang.String |
toString() |
static ColorMap.PredefinedColorMap |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorMap.PredefinedColorMap[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorMap.PredefinedColorMap None
public static final ColorMap.PredefinedColorMap GrayScale
public static final ColorMap.PredefinedColorMap JET
public static final ColorMap.PredefinedColorMap ColorSpectrum
public static final ColorMap.PredefinedColorMap Hot
public static final ColorMap.PredefinedColorMap Cool
public static final ColorMap.PredefinedColorMap Shaded
java.lang.String name
double[] values
org.eclipse.swt.graphics.RGB[] colors
public static ColorMap.PredefinedColorMap[] values()
for (ColorMap.PredefinedColorMap c : ColorMap.PredefinedColorMap.values()) System.out.println(c);
public static ColorMap.PredefinedColorMap 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.util.LinkedHashMap<java.lang.Double,org.eclipse.swt.graphics.RGB> getMap()
public static java.lang.String[] getStringValues()
public static int toIndex(ColorMap.PredefinedColorMap p)
public static ColorMap.PredefinedColorMap fromIndex(int index)
public java.lang.String toString()
toString
in class java.lang.Enum<ColorMap.PredefinedColorMap>