Пример #1
0
 /** Builds a BoxPlotGenerator not attached to any MASON simulation. */
 public static BoxPlotGenerator buildBoxPlotGenerator(String title, String rangeAxisLabel) {
   BoxPlotGenerator chart = new BoxPlotGenerator();
   if (title == null) title = "";
   chart.setTitle(title);
   if (rangeAxisLabel == null) rangeAxisLabel = "";
   chart.setYAxisLabel(rangeAxisLabel);
   return chart;
 }
Пример #2
0
 /** Builds a BoxPlotGenerator and attaches it as a display in a MASON simulation. */
 public static BoxPlotGenerator buildBoxPlotGenerator(
     GUIState state, String title, String rangeAxisLabel) {
   BoxPlotGenerator chart = buildBoxPlotGenerator(title, rangeAxisLabel);
   JFrame frame = chart.createFrame();
   frame.setVisible(true);
   frame.pack();
   state.controller.registerFrame(frame);
   return chart;
 }
Пример #3
0
 /** Adds a series to the BoxPlotGenerator. */
 public static BoxPlotSeriesAttributes addSeries(final BoxPlotGenerator chart, String seriesName) {
   return (BoxPlotSeriesAttributes)
       (chart.addSeries(new double[0][0], new String[0], seriesName, null));
 }