Example #1
0
 /** Builds a HistogramGenerator and attaches it as a display in a MASON simulation. */
 public static HistogramGenerator buildHistogramGenerator(
     GUIState state, String title, String rangeAxisLabel) {
   HistogramGenerator chart = buildHistogramGenerator(title, rangeAxisLabel);
   JFrame frame = chart.createFrame();
   frame.setVisible(true);
   frame.pack();
   state.controller.registerFrame(frame);
   return chart;
 }