当前位置: 首页>>代码示例>>Java>>正文


Java XYAreaRenderer.setURLGenerator方法代码示例

本文整理汇总了Java中org.jfree.chart.renderer.xy.XYAreaRenderer.setURLGenerator方法的典型用法代码示例。如果您正苦于以下问题:Java XYAreaRenderer.setURLGenerator方法的具体用法?Java XYAreaRenderer.setURLGenerator怎么用?Java XYAreaRenderer.setURLGenerator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.renderer.xy.XYAreaRenderer的用法示例。


在下文中一共展示了XYAreaRenderer.setURLGenerator方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createTimeAreaChart

import org.jfree.chart.renderer.xy.XYAreaRenderer; //导入方法依赖的package包/类
private JFreeChart createTimeAreaChart(ReportChart reportChart, ChartValue[] values, boolean displayInline)
{
    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));
    }

    XYPlot plot = new XYPlot(dataset, timeAxis, valueAxis, renderer);
    plot.setOrientation(PlotOrientation.VERTICAL);

    if (reportChart.getPlotOrientation() == ReportChart.HORIZONTAL)
    {
        plot.setOrientation(PlotOrientation.HORIZONTAL);
    }

    JFreeChart chart = new JFreeChart(reportChart.getTitle(), JFreeChart.DEFAULT_TITLE_FONT, plot, reportChart.isShowLegend());

    return chart;
}
 
开发者ID:mtpettyp,项目名称:openreports,代码行数:32,代码来源:ChartReportEngine.java

示例2: createXYAreaChart

import org.jfree.chart.renderer.xy.XYAreaRenderer; //导入方法依赖的package包/类
private JFreeChart createXYAreaChart(ReportChart reportChart, ChartValue[] values, boolean displayInline)
{
    XYDataset dataset = createXYDataset(values);

    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));
    }

    XYPlot plot = new XYPlot(dataset, xAxis, yAxis, renderer);
    plot.setForegroundAlpha(0.5F);
    plot.setOrientation(PlotOrientation.VERTICAL);

    if (reportChart.getPlotOrientation() == ReportChart.HORIZONTAL)
    {
        plot.setOrientation(PlotOrientation.HORIZONTAL);
    }

    JFreeChart chart = new JFreeChart(reportChart.getTitle(),
            JFreeChart.DEFAULT_TITLE_FONT, plot, reportChart.isShowLegend());

    return chart;
}
 
开发者ID:mtpettyp,项目名称:openreports,代码行数:36,代码来源:ChartReportEngine.java

示例3: createTimeAreaChart

import org.jfree.chart.renderer.xy.XYAreaRenderer; //导入方法依赖的package包/类
private JFreeChart createTimeAreaChart(ReportChart reportChart, ChartValue[] values, boolean displayInline)
{
	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));
	}       
     
    XYPlot plot = new XYPlot(dataset, timeAxis, valueAxis, renderer);	   
	plot.setOrientation(PlotOrientation.VERTICAL);
	
	if (reportChart.getPlotOrientation() == ReportChart.HORIZONTAL)
	{
		plot.setOrientation(PlotOrientation.HORIZONTAL);
	}
	
	JFreeChart chart = new JFreeChart(reportChart.getTitle(), JFreeChart.DEFAULT_TITLE_FONT, plot, reportChart.isShowLegend());

	return chart;
}
 
开发者ID:caherrerapa,项目名称:openreportsv2,代码行数:32,代码来源:ChartReportEngine.java

示例4: createXYAreaChart

import org.jfree.chart.renderer.xy.XYAreaRenderer; //导入方法依赖的package包/类
private JFreeChart createXYAreaChart(ReportChart reportChart, ChartValue[] values, boolean displayInline)
{
	XYDataset dataset = createXYDataset(values);
	
	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));
	}       
        
    XYPlot plot = new XYPlot(dataset, xAxis, yAxis, renderer);
	plot.setForegroundAlpha(0.5F);
	plot.setOrientation(PlotOrientation.VERTICAL);

	if (reportChart.getPlotOrientation() == ReportChart.HORIZONTAL)
	{
		plot.setOrientation(PlotOrientation.HORIZONTAL);
	}

	JFreeChart chart = new JFreeChart(reportChart.getTitle(),
			JFreeChart.DEFAULT_TITLE_FONT, plot, reportChart.isShowLegend());

	return chart;
}
 
开发者ID:caherrerapa,项目名称:openreportsv2,代码行数:36,代码来源:ChartReportEngine.java


注:本文中的org.jfree.chart.renderer.xy.XYAreaRenderer.setURLGenerator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。