Package org.jfree.chart

Examples of org.jfree.chart.JFreeChart


    }
  }

  protected JFreeChart createScatterChart() throws JRException
  {
    JFreeChart jfreeChart = super.createScatterChart();
    XYPlot xyPlot = (XYPlot) jfreeChart.getPlot();
    xyPlot.setDomainGridlinesVisible(false);
    XYLineAndShapeRenderer plotRenderer = (XYLineAndShapeRenderer) ((XYPlot)jfreeChart.getPlot()).getRenderer();
    plotRenderer.setBaseShapesFilled(false);
    plotRenderer.setBaseStroke(new BasicStroke(1f));
    return jfreeChart;
  }
View Full Code Here


  /**
   *
   */
  protected JFreeChart createPieChart() throws JRException
  {
    JFreeChart jfreeChart = super.createPieChart();

    PiePlot piePlot = (PiePlot)jfreeChart.getPlot();
    if(piePlot.getLabelGenerator() != null)
    {
      piePlot.setLabelBackgroundPaint(ChartThemesConstants.TRANSPARENT_PAINT);
      piePlot.setLabelShadowPaint(ChartThemesConstants.TRANSPARENT_PAINT);
      piePlot.setLabelOutlinePaint(ChartThemesConstants.TRANSPARENT_PAINT);
View Full Code Here

  /**
   *
   */
  protected JFreeChart createPie3DChart() throws JRException
  {
    JFreeChart jfreeChart = super.createPie3DChart();

    PiePlot3D piePlot3D = (PiePlot3D) jfreeChart.getPlot();
    if(piePlot3D.getLabelGenerator() != null)
    {
      piePlot3D.setLabelBackgroundPaint(ChartThemesConstants.TRANSPARENT_PAINT);
      piePlot3D.setLabelShadowPaint(ChartThemesConstants.TRANSPARENT_PAINT);
      piePlot3D.setLabelOutlinePaint(ChartThemesConstants.TRANSPARENT_PAINT);
View Full Code Here

    return jfreeChart;
  }

  protected JFreeChart createBar3DChart() throws JRException
  {
    JFreeChart jfreeChart = super.createBar3DChart();
    CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
    BarRenderer3D barRenderer3D = (BarRenderer3D)categoryPlot.getRenderer();
    barRenderer3D.setItemMargin(0);
    barRenderer3D.setWallPaint(ChartThemesConstants.TRANSPARENT_PAINT);
    //categoryPlot.setOrientation(PlotOrientation.HORIZONTAL);
    CategoryDataset categoryDataset = categoryPlot.getDataset();
View Full Code Here

  }


  protected JFreeChart createStackedBar3DChart() throws JRException
  {
    JFreeChart jfreeChart = super.createStackedBar3DChart();
    CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
    BarRenderer3D barRenderer3D = (BarRenderer3D)categoryPlot.getRenderer();
    barRenderer3D.setWallPaint(ChartThemesConstants.TRANSPARENT_PAINT);
    barRenderer3D.setItemMargin(0);
    CategoryDataset categoryDataset = categoryPlot.getDataset();
    if(categoryDataset != null)
View Full Code Here

  /**
   *
   */
  protected JFreeChart createBubbleChart() throws JRException
  {
    JFreeChart jfreeChart = super.createBubbleChart();

    XYPlot xyPlot = (XYPlot)jfreeChart.getPlot();
    XYBubbleRenderer bubbleRenderer = (XYBubbleRenderer)xyPlot.getRenderer();
    XYDataset xyDataset = xyPlot.getDataset();
    if(xyDataset != null)
    {
      for(int i = 0; i < xyDataset.getSeriesCount(); i++)
View Full Code Here

   *
   */
  protected JFreeChart createGanttChart() throws JRException
  {

    JFreeChart jfreeChart = super.createGanttChart();
    CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
    categoryPlot.getDomainAxis().setCategoryLabelPositions(CategoryLabelPositions.STANDARD);
    categoryPlot.setDomainGridlinesVisible(true);
    categoryPlot.setDomainGridlinePosition(CategoryAnchor.END);
    categoryPlot.setDomainGridlineStroke(new BasicStroke(
        0.5f,
View Full Code Here

        chartPlot.addInterval(convertInterval(interval));
      }
    }

    // Actually create the chart around the plot
    JFreeChart jfreeChart =
      new JFreeChart(
        (String)evaluateExpression(getChart().getTitleExpression()),
        null,
        chartPlot,
        getChart().getShowLegend() == null ? false : getChart().getShowLegend().booleanValue()
        );
View Full Code Here

    JRThermometerPlot jrPlot = (JRThermometerPlot)getPlot();

    // Create the plot that will hold the thermometer.
    ThermometerPlot chartPlot = new ThermometerPlot((ValueDataset)getDataset());
    // Build a chart around this plot
    JFreeChart jfreeChart = new JFreeChart(chartPlot);

    // Set the generic options
    configureChart(jfreeChart, getPlot());
    jfreeChart.setBackgroundPaint(ChartThemesConstants.TRANSPARENT_PAINT);
    jfreeChart.setBorderVisible(false);

    Range range = convertRange(jrPlot.getDataRange());

    if(range != null)
    {
View Full Code Here

    cap.setRadius(0.05);
    cap.setFillPaint(Color.BLACK);
    cap.setOutlinePaint(ChartThemesConstants.TRANSPARENT_PAINT);
    dialPlot.setCap(cap);

    JFreeChart jfreeChart =
    new JFreeChart(
      (String)evaluateExpression(getChart().getTitleExpression()),
      null,
      dialPlot,
      getChart().getShowLegend() == null ? false : getChart().getShowLegend().booleanValue()
      );

    // Set all the generic options
    configureChart(jfreeChart, getPlot());

    jfreeChart.setBackgroundPaint(ChartThemesConstants.TRANSPARENT_PAINT);
    jfreeChart.setBorderVisible(false);

    return jfreeChart;

  }
View Full Code Here

TOP

Related Classes of org.jfree.chart.JFreeChart

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.