public class HueColorMap extends ColorMapBase
| Modifier and Type | Field and Description |
|---|---|
static double |
defaultBrightness |
static double |
defaultMaxHue |
static double |
defaultMinHue |
static double |
defaultSaturation |
static PropertyList |
myProps |
| Constructor and Description |
|---|
HueColorMap()
Creates a default Hue-varying colormap
|
HueColorMap(double minHue,
double maxHue)
Creates a hue map, setting the min and max hues
|
| Modifier and Type | Method and Description |
|---|---|
ColorMapBase |
clone()
Returns a clone of this composite property.
|
HueColorMap |
copy() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getBrightness()
Constant brightness used by map
|
java.awt.Color |
getColor(double a)
Returns an interpolated color
|
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
|
double |
getHue(double a)
Computes the interpolated hue with a in [0,1]
|
DoubleInterval |
getHueRange()
Gets the range of hue values
|
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
|
double |
getSaturation()
Constant saturation used by map
|
void |
setBrightness(double v)
Brightness value to use for interpolation
|
void |
setHueRange(double minHue,
double maxHue)
Sets the hue range.
|
void |
setHueRange(DoubleInterval range)
Sets the hue range.
|
void |
setSaturation(double s)
Saturation to use for interpolation
|
getColor3Value, getColor4Value, getHSV, getProperty, getPropertyHost, getPropertyInfo, getRGB, getSubClasses, isWritable, scan, setPropertyHost, setPropertyInfo, writepublic static double defaultMinHue
public static double defaultMaxHue
public static double defaultSaturation
public static double defaultBrightness
public static PropertyList myProps
public HueColorMap()
public HueColorMap(double minHue,
double maxHue)
setHueRange(double, double)public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ColorMapBasepublic void setHueRange(double minHue,
double maxHue)
Examples:
[0, 1/6] will interpolate from red to yellow
[1/6, 0] will interpolate from yellow to red
[5/6, 7/6] will interpolate from violet to yellow
public void setSaturation(double s)
public double getSaturation()
public void setBrightness(double v)
public double getBrightness()
public java.awt.Color getColor(double a)
ColorMapa - input, usually in the range [0,1]public void getRGB(double a,
double[] rgb)
ColorMapa - input, usually in the range [0,1]rgb - output colorpublic void getRGB(double a,
float[] rgb)
ColorMapa - input, usually in the range [0,1]rgb - output colorpublic void getHSV(double a,
double[] hsv)
ColorMapa - input, usually in the range [0,1]hsv - output colorpublic double getHue(double a)
public void getHSV(double a,
float[] hsv)
ColorMapa - input, usually in the range [0,1]hsv - output colorpublic DoubleInterval getHueRange()
setHueRange(double, double)public void setHueRange(DoubleInterval range)
Examples:
[0, 1/6] will interpolate from red to yellow
[1/6, 0] will interpolate from yellow to red
[5/6, 7/6] will interpolate from violet to yellow
public HueColorMap copy()
copy in class ColorMapBasepublic ColorMapBase clone() throws java.lang.CloneNotSupportedException
CompositePropertyclone in interface CompositePropertyclone in interface Clonableclone in class ColorMapBasejava.lang.CloneNotSupportedException