Пример #1
0
  public ChartFactory(NMONVisualizerApp app) {
    this.app = app;

    lineChartBuilder = new LineChartBuilder();
    lineChartBuilder.addPlugin(new LineChartBuilderPlugin(app));

    barChartBuilder = new BarChartBuilder();
    intervalChartBuilder = new IntervalChartBuilder();
    histogramChartBuilder = new HistogramChartBuilder();
  }
Пример #2
0
 public void addPlugin(ChartBuilderPlugin plugin) {
   lineChartBuilder.addPlugin(plugin);
   barChartBuilder.addPlugin(plugin);
   intervalChartBuilder.addPlugin(plugin);
   histogramChartBuilder.addPlugin(plugin);
 }