Package xal.extension.widgets.plot
Class RainbowColorGenerator
java.lang.Object
xal.extension.widgets.plot.RainbowColorGenerator
- All Implemented Interfaces:
ColorGenerator
RainbowColorGenerator class keeps the map between color and range 0.0 - 1.0
based on the Rainbow approach. This class is based on the singleton pattern.
- Version:
- 1.0
- Author:
- A. Shishlo
-
Method Summary
Modifier and TypeMethodDescriptiongetColor
(double value) Implementation of the ColorGenerator interface.getColor
(float value) Implementation of the ColorGenerator interface.static RainbowColorGenerator
-
Method Details
-
getColorGenerator
-
getColor
Implementation of the ColorGenerator interface. Returns the Color corresponding the input value. The value should be more than 0. and less than 1.0- Specified by:
getColor
in interfaceColorGenerator
-
getColor
Implementation of the ColorGenerator interface. Returns the Color corresponding the input value. The value should be more than 0. and less than 1.0- Specified by:
getColor
in interfaceColorGenerator
-