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

public class RainbowPaintScale extends AutoScaledPaintScale
Paint scale producing a rainbow of colors by adjusting the hue component.
  • Constructor Details

    • RainbowPaintScale

      public RainbowPaintScale(double lowerBound, double upperBound)
      Constructs a rainbow paint scale.
      Parameters:
      lowerBound - the lower bound
      upperBound - the upper bound
  • Method Details

    • getScaledPaint

      public Paint getScaledPaint(double value)
      Description copied from class: AutoScaledPaintScale
      Returns the paint for a value scaled by the lower and upper bounds.
      Specified by:
      getScaledPaint in class AutoScaledPaintScale
      Parameters:
      value - the scaled value, between 0.0 and 1.0
      Returns:
      the paint
    • scale

      public RainbowPaintScale scale(double lowerBound, double upperBound)
      Description copied from class: AutoScaledPaintScale
      Returns a new paint scale with new lower and upper bounds.
      Specified by:
      scale in class AutoScaledPaintScale
      Parameters:
      lowerBound - the new lower bound
      upperBound - the new upper bound
      Returns:
      the new paint scale