Class RainbowColorGenerator

java.lang.Object
xal.extension.widgets.plot.RainbowColorGenerator
All Implemented Interfaces:
ColorGenerator

public class RainbowColorGenerator extends Object implements 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 Details

    • getColorGenerator

      public static RainbowColorGenerator getColorGenerator()
    • getColor

      public Color getColor(float value)
      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 interface ColorGenerator
    • getColor

      public Color getColor(double value)
      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 interface ColorGenerator