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


Java RingPlot.setURLGenerator方法代码示例

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


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

示例1: createRingChart

import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
/**
 * Creates a ring chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link RingPlot} 
 * instance as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param urls  configure chart to generate URLs?
 *
 * @return A pie chart.
 */
public static JFreeChart createRingChart(String title,
                                         PieDataset dataset,
                                         boolean legend,
                                         boolean tooltips,
                                         boolean urls) {

    RingPlot plot = new RingPlot(dataset);
    plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
    plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
    if (tooltips) {
        plot.setToolTipGenerator(new StandardPieToolTipGenerator(
                StandardPieToolTipGenerator.DEFAULT_SECTION_LABEL_FORMAT));
    }
    if (urls) {
        plot.setURLGenerator(new StandardPieURLGenerator());
    }
    return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, 
            legend);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:35,代码来源:ChartFactory.java

示例2: createRingChart

import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
/**
 * Creates a ring chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link RingPlot}
 * instance as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param urls  configure chart to generate URLs?
 *
 * @return A ring chart.
 */
public static JFreeChart createRingChart(String title, PieDataset dataset,
        boolean legend, boolean tooltips, boolean urls) {

    RingPlot plot = new RingPlot(dataset);
    plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
    plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
    if (tooltips) {
        plot.setToolTipGenerator(new StandardPieToolTipGenerator());
    }
    if (urls) {
        plot.setURLGenerator(new StandardPieURLGenerator());
    }
    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;

}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:33,代码来源:ChartFactory.java

示例3: createRingChart

import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
/**
 * Creates a ring chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link RingPlot}
 * instance as the plot.
 *
 * @param title  the chart title ({@code null} permitted).
 * @param dataset  the dataset for the chart ({@code null} permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param urls  configure chart to generate URLs?
 *
 * @return A ring chart.
 */
public static JFreeChart createRingChart(String title, PieDataset dataset,
        boolean legend, boolean tooltips, boolean urls) {

    RingPlot plot = new RingPlot(dataset);
    plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
    plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
    if (tooltips) {
        plot.setToolTipGenerator(new StandardPieToolTipGenerator());
    }
    if (urls) {
        plot.setURLGenerator(new StandardPieURLGenerator());
    }
    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;

}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:33,代码来源:ChartFactory.java

示例4: createRingChart

import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
/**
 * Creates a ring chart with default settings.
 * <P>
 * The chart object returned by this method uses a {@link RingPlot}
 * instance as the plot.
 *
 * @param title  the chart title (<code>null</code> permitted).
 * @param dataset  the dataset for the chart (<code>null</code> permitted).
 * @param legend  a flag specifying whether or not a legend is required.
 * @param tooltips  configure chart to generate tool tips?
 * @param urls  configure chart to generate URLs?
 *
 * @return A ring chart.
 */
public static JFreeChart createRingChart(String title,
                                         PieDataset dataset,
                                         boolean legend,
                                         boolean tooltips,
                                         boolean urls) {

    RingPlot plot = new RingPlot(dataset);
    plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
    plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
    if (tooltips) {
        plot.setToolTipGenerator(new StandardPieToolTipGenerator());
    }
    if (urls) {
        plot.setURLGenerator(new StandardPieURLGenerator());
    }
    JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
            plot, legend);
    currentTheme.apply(chart);
    return chart;

}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:36,代码来源:ChartFactory.java

示例5: createRingChart

import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
private JFreeChart createRingChart(ReportChart reportChart,
        ChartValue[] values, boolean displayInline)
{
    PieDataset dataset = createPieDataset(values);

    RingPlot plot = new RingPlot(dataset);
    plot.setToolTipGenerator(new StandardPieToolTipGenerator());

    if (reportChart.getDrillDownReport() != null)
    {
        plot.setURLGenerator(new StandardPieURLGenerator(
                "executeReport.action?displayInline=" + displayInline
                        + "&exportType=0&reportId="
                        + reportChart.getDrillDownReport().getId(),
                ReportChart.DRILLDOWN_PARAMETER, "pieIndex"));
    }

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

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

示例6: createRingChart

import org.jfree.chart.plot.RingPlot; //导入方法依赖的package包/类
private JFreeChart createRingChart(ReportChart reportChart,
		ChartValue[] values, boolean displayInline)
{
	PieDataset dataset = createPieDataset(values);

	RingPlot plot = new RingPlot(dataset);
	plot.setToolTipGenerator(new StandardPieToolTipGenerator());

	if (reportChart.getDrillDownReport() != null)
	{
		plot.setURLGenerator(new StandardPieURLGenerator(
				"executeReport.action?displayInline=" + displayInline
						+ "&exportType=0&reportId="
						+ reportChart.getDrillDownReport().getId(),
				ReportChart.DRILLDOWN_PARAMETER, "pieIndex"));
	}

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

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


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