Examples of XYAreaRenderer


Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

    {
      final NumberAxis catAxis = new NumberAxis("Range");// NON-NLS
      final NumberAxis barsAxis = new NumberAxis("Value");// NON-NLS
      final NumberAxis linesAxis = new NumberAxis("Value2");// NON-NLS

      final XYPlot plot = new XYPlot(createXYZDataset(), catAxis, barsAxis, new XYAreaRenderer());
      plot.setRenderer(1, new XYLineAndShapeRenderer());

      // add lines dataset and axis to plot
      plot.setDataset(1, createXYZDataset());
      plot.setRangeAxis(1, linesAxis);
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

        series.add(4, 30);
        series.add(5, 25);
        series.add(6, 15);
        ds2.addSeries(series);

        XYAreaRenderer r = new XYAreaRenderer(XYAreaRenderer.AREA_AND_SHAPES);

        XYPlot plot2 = new XYPlot(ds2, new NumberAxis("X"), y,
                new XYLineAndShapeRenderer());

        plot2.setDataset(1, ds);
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

    {
      final NumberAxis catAxis = new NumberAxis("Range");// NON-NLS
      final NumberAxis barsAxis = new NumberAxis("Value");// NON-NLS
      final NumberAxis linesAxis = new NumberAxis("Value2");// NON-NLS

      final XYPlot plot = new XYPlot(createXYZDataset(), catAxis, barsAxis, new XYAreaRenderer());
      plot.setRenderer(1, new XYLineAndShapeRenderer());

      // add lines dataset and axis to plot
      plot.setDataset(1, createXYZDataset());
      plot.setRangeAxis(1, linesAxis);
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

        XYURLGenerator urlGenerator = null;
        if (urls) {
            urlGenerator = new StandardXYURLGenerator();
        }

        plot.setRenderer(new XYAreaRenderer(XYAreaRenderer.AREA, tipGenerator,
                urlGenerator));
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        currentTheme.apply(chart);
        return chart;
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

    XYDataset dataset = createTimeDataset(values);
   
    ValueAxis timeAxis = new DateAxis(reportChart.getXAxisLabel());
      NumberAxis valueAxis = new NumberAxis(reportChart.getYAxisLabel());
     
      XYAreaRenderer renderer = new XYAreaRenderer();
        renderer.setBaseToolTipGenerator(StandardXYToolTipGenerator.getTimeSeriesInstance());
       
        if (reportChart.getDrillDownReport() != null)
    {
      renderer.setURLGenerator(new TimeSeriesURLGenerator(
          "executeReport.action?displayInline=" + displayInline
              + "&exportType=0&reportId="
              + reportChart.getDrillDownReport().getId(), "series",
          ReportChart.DRILLDOWN_PARAMETER));
    }      
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

    NumberAxis xAxis = new NumberAxis(reportChart.getXAxisLabel());
      xAxis.setAutoRangeIncludesZero(false);
          
      NumberAxis yAxis = new NumberAxis(reportChart.getYAxisLabel());
      
      XYAreaRenderer renderer = new XYAreaRenderer();
        renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator());
       
        if (reportChart.getDrillDownReport() != null)
    {
      renderer.setURLGenerator(new XYURLGenerator(
          "executeReport.action?displayInline=" + displayInline
              + "&exportType=0&reportId="
              + reportChart.getDrillDownReport().getId(), "series",
          ReportChart.DRILLDOWN_PARAMETER));
    }      
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

        NumberFormat formatter = NumberFormat.getNumberInstance(JiveGlobals.getLocale());
        formatter.setMaximumFractionDigits(2);
        formatter.setMinimumFractionDigits(0);
        yAxis.setNumberFormatOverride(formatter);

        XYAreaRenderer renderer = new XYAreaRenderer(XYAreaRenderer.AREA);
        renderer.setOutline(true);

        return createChart(title, data, xAxis, yAxis, orientation, renderer,
                GraphDefinition.getDefinition(color));
    }
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

        XYURLGenerator urlGenerator = null;
        if (urls) {
            urlGenerator = new StandardXYURLGenerator();
        }

        plot.setRenderer(new XYAreaRenderer(XYAreaRenderer.AREA, tipGenerator,
                urlGenerator));
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        currentTheme.apply(chart);
        return chart;
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

        XYURLGenerator urlGenerator = null;
        if (urls) {
            urlGenerator = new StandardXYURLGenerator();
        }

        plot.setRenderer(new XYAreaRenderer(XYAreaRenderer.AREA, tipGenerator,
                urlGenerator));
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        currentTheme.apply(chart);
        return chart;
View Full Code Here

Examples of org.jfree.chart.renderer.xy.XYAreaRenderer

    /**
     * Verify that this class implements {@link PublicCloneable}.
     */
    public void testPublicCloneable() {
        XYAreaRenderer r1 = new XYAreaRenderer();
        assertTrue(r1 instanceof PublicCloneable);
    }
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.