/** 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; }
/** 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; }
/** 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; }