- All Known Implementing Classes:
FixedColorScale
,GradientColorScale
,RainbowScale
public interface ColorScale
A color scale converts a data value into a color according to some
predefined color scale.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptiongetRange()
Returns the range over which the scale is defined.valueToColor
(double value) Returns the color on the scale that corresponds to the specified value.
-
Method Details
-
getRange
Returns the range over which the scale is defined.- Returns:
- The range (never
null
).
-
valueToColor
Returns the color on the scale that corresponds to the specified value.- Parameters:
value
- the value.- Returns:
- The color (never
null
).
-