Package org.moeaframework.analysis.plot
Class BoxAndWhiskerPlotBuilder
java.lang.Object
org.moeaframework.analysis.plot.PlotBuilder<BoxAndWhiskerPlotBuilder>
org.moeaframework.analysis.plot.BoxAndWhiskerPlotBuilder
Constructs a box-and-whisker plot.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.moeaframework.analysis.plot.PlotBuilder
PlotBuilder.DisplayDriver
-
Field Summary
Fields inherited from class org.moeaframework.analysis.plot.PlotBuilder
paintHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(String label, double[] values, PlotAttribute... attributes) Adds a new box-and-whisker entry to this plot.add
(String label, List<? extends Number> values, PlotAttribute... attributes) Adds a new box-and-whisker entry to this plot.add
(String label, DataStream<? extends Number> stream, PlotAttribute... attributes) Adds a new box-and-whisker entry to this plot.add
(IndicatorStatistics statistics, PlotAttribute... attributes) Adds a new box-and-whisker entry for each indicator in the given statistics.org.jfree.chart.JFreeChart
build()
Builds and returns the configured plot.protected BoxAndWhiskerPlotBuilder
Returns an instance of this builder cast to the concrete implementation typePlotBuilder
.Methods inherited from class org.moeaframework.analysis.plot.PlotBuilder
applyStyle, applyStyle, barGraph, boxAndWhisker, build, buildPanel, defaultLegend, getAttribute, getDisplayDriver, getValueOrDefault, getValueOrDefault, hasAttribute, heatMap, legend, noLegend, paintHelper, save, save, save, sensitivity, setDisplayDriver, show, show, subtitle, theme, title, to2DArray, toArray, toArray, xy
-
Constructor Details
-
BoxAndWhiskerPlotBuilder
public BoxAndWhiskerPlotBuilder()Constructs a new, empty box-and-whisker plot.
-
-
Method Details
-
getInstance
Description copied from class:PlotBuilder
Returns an instance of this builder cast to the concrete implementation typePlotBuilder
. This is used by any intermediate classes to returns the concrete implementation.- Specified by:
getInstance
in classPlotBuilder<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 classPlotBuilder<BoxAndWhiskerPlotBuilder>
- Returns:
- the resulting plot
-
add
Adds a new box-and-whisker entry to this plot.- Parameters:
label
- the label for the seriesvalues
- the valuesattributes
- 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 seriesstream
- the data stream containing the valuesattributes
- 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 seriesvalues
- the valuesattributes
- the attributes configuring the plot- Returns:
- a reference to this builder
-
add
Adds a new box-and-whisker entry for each indicator in the given statistics.- Parameters:
statistics
- the indicator statisticsattributes
- the attributes configuring the plot- Returns:
- a reference to this builder
-