Class BoxAndWhiskerPlotBuilder

java.lang.Object
org.moeaframework.analysis.plot.PlotBuilder<BoxAndWhiskerPlotBuilder>
org.moeaframework.analysis.plot.BoxAndWhiskerPlotBuilder

public class BoxAndWhiskerPlotBuilder extends PlotBuilder<BoxAndWhiskerPlotBuilder>
Constructs a box-and-whisker plot.
  • Constructor Details

    • BoxAndWhiskerPlotBuilder

      public BoxAndWhiskerPlotBuilder()
      Constructs a new, empty box-and-whisker plot.
  • Method Details

    • getInstance

      protected BoxAndWhiskerPlotBuilder getInstance()
      Description copied from class: PlotBuilder
      Returns an instance of this builder cast to the concrete implementation type PlotBuilder. This is used by any intermediate classes to returns the concrete implementation.
      Specified by:
      getInstance in class PlotBuilder<BoxAndWhiskerPlotBuilder>
      Returns:
      a reference to this builder instance
    • build

      public org.jfree.chart.JFreeChart build()
      Description copied from class: PlotBuilder
      Builds and returns the configured plot.
      Specified by:
      build in class PlotBuilder<BoxAndWhiskerPlotBuilder>
      Returns:
      the resulting plot
    • add

      public BoxAndWhiskerPlotBuilder add(String label, double[] values, PlotAttribute... attributes)
      Adds a new box-and-whisker entry to this plot.
      Parameters:
      label - the label for the series
      values - the values
      attributes - the attributes configuring the plot
      Returns:
      a reference to this builder
    • add

      public BoxAndWhiskerPlotBuilder add(String label, DataStream<? extends Number> stream, PlotAttribute... attributes)
      Adds a new box-and-whisker entry to this plot.
      Parameters:
      label - the label for the series
      stream - the data stream containing the values
      attributes - the attributes configuring the plot
      Returns:
      a reference to this builder
    • add

      public BoxAndWhiskerPlotBuilder add(String label, List<? extends Number> values, PlotAttribute... attributes)
      Adds a new box-and-whisker entry to this plot.
      Parameters:
      label - the label for the series
      values - the values
      attributes - the attributes configuring the plot
      Returns:
      a reference to this builder
    • add

      public BoxAndWhiskerPlotBuilder add(IndicatorStatistics statistics, PlotAttribute... attributes)
      Adds a new box-and-whisker entry for each indicator in the given statistics.
      Parameters:
      statistics - the indicator statistics
      attributes - the attributes configuring the plot
      Returns:
      a reference to this builder