Class ShapeAttribute

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

public class ShapeAttribute extends Object implements StyleAttribute
Styles the shape of a plotted series.
  • Constructor Details

    • ShapeAttribute

      public ShapeAttribute(RectangularShape shape)
      Creates a new shape style attribute.
      Parameters:
      shape - the shape
  • 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 ShapeAttribute of(RectangularShape shape)
      Returns a custom shape style attribute.
      Parameters:
      shape - the shape
      Returns:
      the resulting shape style attribute