public abstract class InterpolatingColorMap extends ColorMapBase
Modifier and Type | Field and Description |
---|---|
static java.awt.Color[] |
defaultColorArray |
static PropertyList |
myProps |
Constructor and Description |
---|
InterpolatingColorMap() |
Modifier and Type | Method and Description |
---|---|
InterpolatingColorMap |
clone()
Returns a clone of this composite property.
|
abstract InterpolatingColorMap |
copy() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
java.awt.Color |
getColor(double a)
Returns an interpolated color
|
static java.awt.Color[] |
getColorArray(java.lang.String colorString)
Parses a string listing colors in hex format to generate
an array of
Color objects |
java.lang.String |
getColorString() |
static java.lang.String |
getColorString(java.awt.Color[] carray)
Creates a string listing an array of colors of the
form "0x________ 0x________ ..."
|
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.
|
void |
setColorString(java.lang.String str) |
getColor3Value, getColor4Value, getHSV, getProperty, getPropertyHost, getPropertyInfo, getRGB, getSubClasses, isWritable, scan, setPropertyHost, setPropertyInfo, write
public static final java.awt.Color[] defaultColorArray
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ColorMapBase
public void setColorArray(java.awt.Color[] colors)
public java.lang.String getColorString()
public void setColorString(java.lang.String str)
public java.awt.Color getColor(double a)
ColorMap
a
- input, usually in the range [0,1]public void getRGB(double a, double[] rgb)
ColorMap
a
- input, usually in the range [0,1]rgb
- output colorpublic void getRGB(double a, float[] rgb)
ColorMap
a
- input, usually in the range [0,1]rgb
- output colorpublic void getHSV(double a, double[] hsv)
ColorMap
a
- input, usually in the range [0,1]hsv
- output colorpublic void getHSV(double a, float[] hsv)
ColorMap
a
- input, usually in the range [0,1]hsv
- output colorpublic static java.lang.String getColorString(java.awt.Color[] carray)
public static java.awt.Color[] getColorArray(java.lang.String colorString)
Color
objectspublic abstract InterpolatingColorMap copy()
copy
in class ColorMapBase
public InterpolatingColorMap clone()
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class ColorMapBase