java.lang.Object
org.jfree.chart3d.renderer.FixedColorScale
- All Implemented Interfaces:
Serializable
,ColorScale
A
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
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.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- Since:
- 1.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FixedColorScale
Creates a newFixedColorScale
instance.- Parameters:
color
- the color (null
not permitted).
-
-
Method Details
-
getRange
Returns the range0.0
to1.0
always.- Specified by:
getRange
in interfaceColorScale
- Returns:
- The range (never
null
).
-
valueToColor
Returns a single color (as specified in the constructor) for all values.- Specified by:
valueToColor
in interfaceColorScale
- Parameters:
value
- the value.- Returns:
- The fixed color.
-
equals
Tests this instance for equality with an arbitrary object.
-