Class AutoScaledPaintScale

java.lang.Object
org.moeaframework.analysis.plot.style.AutoScaledPaintScale
All Implemented Interfaces:
org.jfree.chart.renderer.PaintScale
Direct Known Subclasses:
IndexedPaintScale, RainbowPaintScale

public abstract class AutoScaledPaintScale extends Object implements org.jfree.chart.renderer.PaintScale
Abstract class for defining paint scales that are automatically scaled based on the range of Z values.
  • Constructor Details

    • AutoScaledPaintScale

      public AutoScaledPaintScale(double lowerBound, double upperBound)
      Constructs an auto-scaled paint scale with initial bounds.
      Parameters:
      lowerBound - the lower bound
      upperBound - the upper bound
  • Method Details

    • getLowerBound

      public double getLowerBound()
      Specified by:
      getLowerBound in interface org.jfree.chart.renderer.PaintScale
    • getUpperBound

      public double getUpperBound()
      Specified by:
      getUpperBound in interface org.jfree.chart.renderer.PaintScale
    • getScaledPaint

      public abstract Paint getScaledPaint(double value)
      Returns the paint for a value scaled by the lower and upper bounds.
      Parameters:
      value - the scaled value, between 0.0 and 1.0
      Returns:
      the paint
    • scale

      public abstract AutoScaledPaintScale scale(double lowerBound, double upperBound)
      Returns a new paint scale with new lower and upper bounds.
      Parameters:
      lowerBound - the new lower bound
      upperBound - the new upper bound
      Returns:
      the new paint scale
    • getPaint

      public Paint getPaint(double value)
      Specified by:
      getPaint in interface org.jfree.chart.renderer.PaintScale