Package org.jfree.chart

Examples of org.jfree.chart.ChartPanel


      Instances history) throws Exception {

    JFreeChart chart = getFutureForecastChart(forecaster, preds, targetNames,
        history);

    ChartPanel result = new ChartPanel(chart, false, true, true, true, false);

    return result;
  }
View Full Code Here


      int instanceNumOffset, Instances data) throws Exception {

    JFreeChart chart = getPredictedTargetsChart(forecaster, preds, targetNames,
        stepNumber, instanceNumOffset, data);

    ChartPanel result = new ChartPanel(chart, false, true, true, true, false);

    return result;
  }
View Full Code Here

      int instanceNumOffset, Instances data) throws Exception {

    JFreeChart chart = getPredictedStepsChart(forecaster, preds, targetName,
        stepsToPlot, instanceNumOffset, data);

    ChartPanel result = new ChartPanel(chart, false, true, true, true, false);

    return result;
  }
View Full Code Here

  }
 
  public void start(ComputeAnalysis model){
    CategoryDataset dataset = createDataset(model.values);
    JFreeChart chart = createChart(dataset);
    ChartPanel chartPanel = new ChartPanel(chart, false);
    chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
    setContentPane(chartPanel);
    pack();
    setVisible(true);
  }
View Full Code Here

                m_dataset = new DefaultXYDataset();
                m_chart = ChartFactory.createXYLineChart(m_title,  m_xAxisLabel,  m_yAxisLabel,
                                                         m_dataset,  PlotOrientation.VERTICAL,  true,  true,  false);
                initChart();
            }
             m_chartPanel = new ChartPanel(m_chart);
        }
        return m_chartPanel;
       
    }
View Full Code Here

                jp.m_dataset = new DefaultXYDataset();
                jp.m_chart = ChartFactory.createXYLineChart(m_title,  m_xAxisLabel,  m_yAxisLabel,
                                                         m_dataset,  PlotOrientation.VERTICAL,  true,  true,  false);
                initChart();
            }
            jp.m_chartPanel = new ChartPanel(jp.m_chart);
        }
        return jp.m_chartPanel;
       
    }
View Full Code Here

        // build a Pie Chart and a panel to display it
        final JFreeChart pieChart_IssuesByStatus = new JFreeChart("Issues By Status", new CustomPiePlot(issuesByStatusDataset));
        pieChart_IssuesByStatus.setBackgroundPaint(CHART_PANEL_BACKGROUND_PAINT);
        pieChart_IssuesByStatus.getLegend().setBorder(CHART_LEGEND_BORDER);
        this.pieChartPanel_IssuesByStatus = new ChartPanel(pieChart_IssuesByStatus, true);

        // build a Line Chart and a panel to display it
        final JFreeChart lineChart_OpenIssuesOverTime = ChartFactory.createLineChart("Open Issues Over Time", "Time", "Open Issues", new OpenIssuesByMonthCategoryDataset(issuesList), PlotOrientation.VERTICAL, true, true, false);
        lineChart_OpenIssuesOverTime.setBackgroundPaint(CHART_PANEL_BACKGROUND_PAINT);
        lineChart_OpenIssuesOverTime.getLegend().setBorder(CHART_LEGEND_BORDER);
        final CategoryPlot categoryPlot = lineChart_OpenIssuesOverTime.getCategoryPlot();
        categoryPlot.setBackgroundPaint(CHART_PLOT_BACKGROUND_PAINT);
        categoryPlot.setDomainAxis(new CustomCategoryAxis());
        categoryPlot.setRenderer(new CustomCategoryItemRenderer(categoryPlot.getDataset()));
        this.lineChartPanel_OpenIssuesOverTime = new ChartPanel(lineChart_OpenIssuesOverTime, true);

        // add all ChartPanels to a master panel
        this.allChartsPanel.add(this.pieChartPanel_IssuesByStatus, new GridBagConstraints(0, 0, 1, 1, 0.4, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
        this.allChartsPanel.add(this.lineChartPanel_OpenIssuesOverTime, new GridBagConstraints(1, 0, 1, 1, 0.6, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
    }
View Full Code Here

      JFreeChart classesInClastersChart = ChartFactory
              .createBarChart(Localizer.getString(StringId.CLESSES_IN_CLUSTERS),
                      Localizer.getString(StringId.CLUSTERS),
                      Localizer.getString(StringId.CLASSES_COUNT_SHORT), classesInClastersDataset,
                      PlotOrientation.VERTICAL, true, true, true);
      classesInClastersChartPanel = new ChartPanel(classesInClastersChart, true);


      JFreeChart clastersInClassesChart = ChartFactory
              .createBarChart(Localizer.getString(StringId.CLUSTERS_IN_CLASSES),
                      Localizer.getString(StringId.CLASSES),
                      Localizer.getString(StringId.CLUSTERS_COUNT_SHORT), clastersInClassesDataset,
                      PlotOrientation.VERTICAL, true, true, true);
      clastersInClassesChartPanel = new ChartPanel(clastersInClassesChart, true);
   }
View Full Code Here

    public HeartBeatWidget() {
        pulseTimeSeries.setMaximumItemCount(20);
        dataset.addSeries(pulseTimeSeries);
        final JFreeChart chart = createTimeSeriesChart();
        chartPanel = new ChartPanel(chart);
        chartPanel.setPreferredSize(new java.awt.Dimension(220, 200));
        chartPanel.setName("Monitor");
    }
View Full Code Here

    chart.getLegend().setItemFont(new Font("微軟正黑體", Font.PLAIN, 15));
    PiePlot3D pieplot3d = (PiePlot3D) chart.getPlot();
    pieplot3d.setLabelFont(new Font("微軟正黑體", Font.PLAIN, 12));
    pieplot3d.setLabelGenerator(new   StandardPieSectionLabelGenerator( "{0}--{2}"));

    ChartPanel cp = new ChartPanel(chart);
    cp.setPreferredSize(new java.awt.Dimension(600, 300));

    return cp;
  }
View Full Code Here

TOP

Related Classes of org.jfree.chart.ChartPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.