public class RainbowColorMap extends InterpolatingColorMap
| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
static java.awt.Color[] |
rainbow |
defaultColorArray| Constructor and Description |
|---|
RainbowColorMap() |
RainbowColorMap(java.awt.Color[] colors) |
| Modifier and Type | Method and Description |
|---|---|
RainbowColorMap |
copy() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
void |
getHSV(double a,
double[] hsv)
Fills an array with the interpolated color values
in HSV format
|
void |
getHSV(double a,
float[] hsv)
Fills an array with the interpolated color values
in HSV format
|
void |
getRGB(double a,
double[] rgb)
Fills an array with the interpolated color values
in RGB format
|
void |
getRGB(double a,
float[] rgb)
Fills an array with the interpolated color values
in RGB format
|
void |
setColorArray(java.awt.Color[] colors)
Sets the list of colors within which to interpolate.
|
clone, getColor, getColorArray, getColorString, getColorString, setColorStringgetColor3Value, getColor4Value, getHSV, getProperty, getPropertyHost, getPropertyInfo, getRGB, getSubClasses, isWritable, scan, setPropertyHost, setPropertyInfo, writepublic static java.awt.Color[] rainbow
public static PropertyList myProps
public RainbowColorMap()
public RainbowColorMap(java.awt.Color[] colors)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class InterpolatingColorMappublic void setColorArray(java.awt.Color[] colors)
setColorArray in class InterpolatingColorMappublic void getRGB(double a,
double[] rgb)
ColorMapgetRGB in interface ColorMapgetRGB in class InterpolatingColorMapa - input, usually in the range [0,1]rgb - output colorpublic void getRGB(double a,
float[] rgb)
ColorMapgetRGB in interface ColorMapgetRGB in class InterpolatingColorMapa - input, usually in the range [0,1]rgb - output colorpublic void getHSV(double a,
double[] hsv)
ColorMapgetHSV in interface ColorMapgetHSV in class InterpolatingColorMapa - input, usually in the range [0,1]hsv - output colorpublic void getHSV(double a,
float[] hsv)
ColorMapgetHSV in interface ColorMapgetHSV in class InterpolatingColorMapa - input, usually in the range [0,1]hsv - output colorpublic RainbowColorMap copy()
copy in class InterpolatingColorMap