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 newFixedColorScaleinstance.- Parameters:
color- the color (nullnot permitted).
-
-
Method Details
-
getRange
Returns the range0.0to1.0always.- Specified by:
getRangein interfaceColorScale- Returns:
- The range (never
null).
-
valueToColor
Returns a single color (as specified in the constructor) for all values.- Specified by:
valueToColorin interfaceColorScale- Parameters:
value- the value.- Returns:
- The fixed color.
-
equals
Tests this instance for equality with an arbitrary object.
-