Example #1
0
 /** Builds a BarChartGenerator and attaches it as a display in a MASON simulation. */
 public static BarChartGenerator buildBarChartGenerator(GUIState state, String title) {
   BarChartGenerator chart = buildBarChartGenerator(title);
   JFrame frame = chart.createFrame();
   frame.setVisible(true);
   frame.pack();
   state.controller.registerFrame(frame);
   return chart;
 }
Example #2
0
 /** Builds a TimeSeriesChartGenerator and attaches it as a display in a MASON simulation. */
 public static TimeSeriesChartGenerator buildTimeSeriesChartGenerator(
     GUIState state, String title, String domainAxisLabel) {
   TimeSeriesChartGenerator chart = buildTimeSeriesChartGenerator(title, domainAxisLabel);
   JFrame frame = chart.createFrame();
   frame.setVisible(true);
   frame.pack();
   state.controller.registerFrame(frame);
   return chart;
 }
Example #3
0
 /** Builds a ScatterPlotGenerator and attaches it as a display in a MASON simulation. */
 public static ScatterPlotGenerator buildScatterPlotGenerator(
     GUIState state, String title, String rangeAxisLabel, String domainAxisLabel) {
   ScatterPlotGenerator chart = buildScatterPlotGenerator(title, rangeAxisLabel, domainAxisLabel);
   JFrame frame = chart.createFrame();
   frame.setVisible(true);
   frame.pack();
   state.controller.registerFrame(frame);
   return chart;
 }