Class RainbowPaintScale
java.lang.Object
org.moeaframework.analysis.plot.style.AutoScaledPaintScale
org.moeaframework.analysis.plot.style.RainbowPaintScale
- All Implemented Interfaces:
org.jfree.chart.renderer.PaintScale
Paint scale producing a rainbow of colors by adjusting the hue component.
-
Constructor Summary
ConstructorsConstructorDescriptionRainbowPaintScale
(double lowerBound, double upperBound) Constructs a rainbow paint scale. -
Method Summary
Modifier and TypeMethodDescriptiongetScaledPaint
(double value) Returns the paint for a value scaled by the lower and upper bounds.scale
(double lowerBound, double upperBound) Returns a new paint scale with new lower and upper bounds.Methods inherited from class org.moeaframework.analysis.plot.style.AutoScaledPaintScale
getLowerBound, getPaint, getUpperBound
-
Constructor Details
-
RainbowPaintScale
public RainbowPaintScale(double lowerBound, double upperBound) Constructs a rainbow paint scale.- Parameters:
lowerBound
- the lower boundupperBound
- the upper bound
-
-
Method Details
-
getScaledPaint
Description copied from class:AutoScaledPaintScale
Returns the paint for a value scaled by the lower and upper bounds.- Specified by:
getScaledPaint
in classAutoScaledPaintScale
- Parameters:
value
- the scaled value, between0.0
and1.0
- Returns:
- the paint
-
scale
Description copied from class:AutoScaledPaintScale
Returns a new paint scale with new lower and upper bounds.- Specified by:
scale
in classAutoScaledPaintScale
- Parameters:
lowerBound
- the new lower boundupperBound
- the new upper bound- Returns:
- the new paint scale
-