Examples of ChartPanel


Examples of org.jfree.chart.ChartPanel

    private void initialize(JFreeChart chart) {
        initComponents();
        if (chart == null) {
            throw new IllegalArgumentException("Chart panel can't be null");
        }
        this.chartPanel = new ChartPanel(chart, true);
       
        scroll.setViewportView(chartPanel);
        adaptChartPanelSizeToScrollSize();
        scroll.revalidate();
        scroll.repaint();
View Full Code Here

Examples of org.jfree.chart.ChartPanel

        plot.setInteriorGap(0);
        plot.setBackgroundPaint(null);
        plot.setBackgroundAlpha(1f);
        plot.setSectionPaint(NbBundle.getMessage(getClass(), "ContextPieChart.visible"), new Color(0x222222));
        plot.setSectionPaint(NbBundle.getMessage(getClass(), "ContextPieChart.notVisible"), new Color(0xDDDDDD));
        chartPanel = new ChartPanel(chart, 100, 100, 10, 10, 300, 300, true, false, false, false, false, false);
        ((FlowLayout) chartPanel.getLayout()).setHgap(0);
        ((FlowLayout) chartPanel.getLayout()).setVgap(0);
        chartPanel.setOpaque(false);
        chartPanel.setPopupMenu(null);
    }
View Full Code Here

Examples of org.jfree.chart.ChartPanel

        plot.setBackgroundPaint(null);
        plot.setBackgroundAlpha(1f);
        for (Part p : partition.getParts()) {
            plot.setSectionPaint(p.getDisplayName(), p.getColor());
        }
        chartPanel = new ChartPanel(chart, true);
        chartPanel.setOpaque(false);
        chartPanel.setPopupMenu(null);
        add(chartPanel, BorderLayout.CENTER);
    }
View Full Code Here

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

Examples of org.jfree.chart.ChartPanel

      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

Examples of org.jfree.chart.ChartPanel

      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

Examples of org.jfree.chart.ChartPanel

  }
 
  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

Examples of org.jfree.chart.ChartPanel

                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

Examples of org.jfree.chart.ChartPanel

                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

Examples of org.jfree.chart.ChartPanel

        // 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
TOP
Copyright © 2018 www.massapi.com. 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.