public class FixedColorScale extends java.lang.Object implements ColorScale, java.io.Serializable
ColorScale that returns the same color for every value on the
scale. This is used by the SurfaceRenderer when there is no need
to represent different value levels by color.
| Constructor and Description |
|---|
FixedColorScale(java.awt.Color color)
Creates a new
FixedColorScale instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
Range |
getRange()
Returns the range
0.0 to 1.0 always. |
java.awt.Color |
valueToColor(double value)
Returns a single color (as specified in the constructor) for all values.
|
public FixedColorScale(java.awt.Color color)
FixedColorScale instance.color - the color (null not permitted).public Range getRange()
0.0 to 1.0 always.getRange in interface ColorScalenull).public java.awt.Color valueToColor(double value)
valueToColor in interface ColorScalevalue - the value.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).