public class GradientColorScale extends AbstractColorScale implements ColorScale
| Constructor and Description |
|---|
GradientColorScale(Range range,
java.awt.Color lowColor,
java.awt.Color highColor)
Creates a new instance with the specified value range and colors.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
java.awt.Color |
getHighColor()
Returns the color for the high end of the data value range.
|
java.awt.Color |
getLowColor()
Returns the color for the low end of the data value range.
|
int |
getSampleCount()
Returns the number of samples used by this color scale.
|
java.awt.Color |
valueToColor(double value)
Returns the color corresponding to the specified data value.
|
getRangeclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRangepublic GradientColorScale(Range range, java.awt.Color lowColor, java.awt.Color highColor)
range - the data value range (null not permitted).lowColor - the color for the low end of the data range
(null not permitted).highColor - the color for the high end of the data range
(null not permitted).public java.awt.Color getLowColor()
null).public java.awt.Color getHighColor()
null).public int getSampleCount()
public java.awt.Color valueToColor(double value)
valueToColor in interface ColorScalevalue - the data value.null).public boolean equals(java.lang.Object obj)
equals in class AbstractColorScaleobj - the object (null permitted).