本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}