Class PaintAttribute

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

public class PaintAttribute extends Object implements StyleAttribute
Styles the paint / color of a plotted series.
  • Constructor Details

    • PaintAttribute

      public PaintAttribute(Paint paint)
      Constructs a new paint style attribute.
      Parameters:
      paint - the paint
    • PaintAttribute

      public PaintAttribute(Paint paint, Paint outlinePaint, Paint fillPaint)
      Constructs a new paint style attribute.
      Parameters:
      paint - the paint
      outlinePaint - the outline paint
      fillPaint - the fill paint
  • 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 PaintAttribute of(Paint paint)
      Returns a custom paint style attribute.
      Parameters:
      paint - the paint
      Returns:
      the resulting style attribute