Class PaintScaleAttribute

java.lang.Object
org.moeaframework.analysis.plot.style.PaintScaleAttribute
All Implemented Interfaces:
PlotAttribute, StyleAttribute

public class PaintScaleAttribute extends Object implements StyleAttribute
Styles the paint scale of a plot using block rendering, such as a heat map.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaintScaleAttribute(org.jfree.chart.renderer.PaintScale paintScale)
    Constructs a new paint scale style attribute.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.jfree.chart.plot.Plot plot, int dataset, int series)
    Applies the style to a specific dataset and series.
    of(org.jfree.chart.renderer.PaintScale paintScale)
    Returns a custom paint scale style attribute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.moeaframework.analysis.plot.style.StyleAttribute

    apply
  • Constructor Details

    • PaintScaleAttribute

      public PaintScaleAttribute(org.jfree.chart.renderer.PaintScale paintScale)
      Constructs a new paint scale style attribute.
      Parameters:
      paintScale - the paint scale
  • Method Details

    • apply

      public void apply(org.jfree.chart.plot.Plot plot, int dataset, int series)
      Description copied from interface: StyleAttribute
      Applies the style to a specific dataset and series.
      Specified by:
      apply in interface StyleAttribute
      Parameters:
      plot - the plot
      dataset - the index of the dataset
      series - the index of the series
    • of

      public static PaintScaleAttribute of(org.jfree.chart.renderer.PaintScale paintScale)
      Returns a custom paint scale style attribute.
      Parameters:
      paintScale - the paint scale
      Returns:
      the resulting style attribute