本文整理汇总了Java中org.jfree.chart.labels.StandardPieToolTipGenerator类的典型用法代码示例。如果您正苦于以下问题:Java StandardPieToolTipGenerator类的具体用法?Java StandardPieToolTipGenerator怎么用?Java StandardPieToolTipGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StandardPieToolTipGenerator类属于org.jfree.chart.labels包,在下文中一共展示了StandardPieToolTipGenerator类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createRingChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的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: createPieChart3D
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a 3D pie chart using the specified dataset. The chart object
* returned by this method uses a {@link PiePlot3D} 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 createPieChart3D(String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
boolean urls) {
PiePlot3D plot = new PiePlot3D(dataset);
plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
if (tooltips) {
plot.setToolTipGenerator(new StandardPieToolTipGenerator());
}
if (urls) {
plot.setURLGenerator(new StandardPieURLGenerator());
}
return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot,
legend);
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:32,代码来源:ChartFactory.java
示例3: createPieChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a pie chart with default settings.
* <P>
* The chart object returned by this method uses a {@link PiePlot} 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 createPieChart(String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
boolean urls) {
PiePlot plot = new PiePlot(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
示例4: createPieChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a pie chart with default settings.
* <P>
* The chart object returned by this method uses a {@link PiePlot} 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 createPieChart(String title, PieDataset dataset,
boolean legend, boolean tooltips, boolean urls) {
PiePlot plot = new PiePlot(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,代码行数:32,代码来源:ChartFactory.java
示例5: createRingChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的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
示例6: createPieChart3D
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a 3D pie chart using the specified dataset. The chart object
* returned by this method uses a {@link PiePlot3D} 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 locale the locale (<code>null</code> not permitted).
*
* @return A pie chart.
*
* @since 1.0.7
*/
public static JFreeChart createPieChart3D(String title, PieDataset dataset,
boolean legend, boolean tooltips, Locale locale) {
ParamChecks.nullNotPermitted(locale, "locale");
PiePlot3D plot = new PiePlot3D(dataset);
plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
if (tooltips) {
plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
}
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
currentTheme.apply(chart);
return chart;
}
开发者ID:mdzio,项目名称:ccu-historian,代码行数:31,代码来源:ChartFactory.java
示例7: createPieChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a pie chart with default settings.
* <P>
* The chart object returned by this method uses a {@link PiePlot} 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 pie chart.
*/
public static JFreeChart createPieChart(String title, PieDataset dataset,
boolean legend, boolean tooltips, boolean urls) {
PiePlot plot = new PiePlot(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,代码行数:32,代码来源:ChartFactory.java
示例8: createRingChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的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
示例9: createPieChart3D
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a 3D pie chart using the specified dataset. The chart object
* returned by this method uses a {@link PiePlot3D} 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 locale the locale ({@code null} not permitted).
*
* @return A pie chart.
*
* @since 1.0.7
*/
public static JFreeChart createPieChart3D(String title, PieDataset dataset,
boolean legend, boolean tooltips, Locale locale) {
Args.nullNotPermitted(locale, "locale");
PiePlot3D plot = new PiePlot3D(dataset);
plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
if (tooltips) {
plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
}
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
currentTheme.apply(chart);
return chart;
}
开发者ID:jfree,项目名称:jfreechart,代码行数:31,代码来源:ChartFactory.java
示例10: createPieChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a pie chart with default settings.
* <P>
* The chart object returned by this method uses a {@link PiePlot} 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 createPieChart(String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
boolean urls) {
PiePlot plot = new PiePlot(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,代码行数:35,代码来源:ChartFactory.java
示例11: createRingChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的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
示例12: createPieChart3D
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a 3D pie chart using the specified dataset. The chart object
* returned by this method uses a {@link PiePlot3D} 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 createPieChart3D(String title,
PieDataset dataset,
boolean legend,
boolean tooltips,
boolean urls) {
PiePlot3D plot = new PiePlot3D(dataset);
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,代码行数:34,代码来源:ChartFactory.java
示例13: createPieChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
private JFreeChart createPieChart(ReportChart reportChart, ChartValue[] values, boolean displayInline)
{
PieDataset dataset = createPieDataset(values);
PiePlot3D plot = new PiePlot3D(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,代码行数:21,代码来源:ChartReportEngine.java
示例14: createRingChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的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
示例15: PieChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
public String PieChart() {
DefaultPieDataset dataset = new DefaultPieDataset();
List<Datas> list = new IncomeDao().getDatas2(park.getParkid());
for (Datas datas : list) {
dataset.setValue(datas.getYear() + "年" + datas.getMonth() + "月",
datas.getMoney());
}
ChartFactory.setChartTheme(getStandardChartTheme());
chart = ChartFactory.createPieChart3D("停车场饼图", dataset, true, true,
false);
PiePlot3D plot = (PiePlot3D) chart.getPlot();
plot.setBaseSectionOutlinePaint(Color.RED);// 设置图形边框颜色
plot.setBaseSectionOutlineStroke(new BasicStroke(1.0f));// 设置图形边框粗细
plot.setForegroundAlpha(0.5f);// 数据区的前景透明度(0.0~1.0)
plot.setCircular(true);// 饼图是否一定是正圆
plot.setStartAngle(360);// 饼图的初始角度
plot.setToolTipGenerator(new StandardPieToolTipGenerator());// 设置鼠标悬停提示
plot.setLabelFont(new Font("微软雅黑", Font.PLAIN, 14));
StandardPieSectionLabelGenerator standarPieIG = new StandardPieSectionLabelGenerator(
"{0}:({1},{2})", NumberFormat.getNumberInstance(),
NumberFormat.getPercentInstance());
plot.setLabelGenerator(standarPieIG);
chart.setTitle(getTitle());
return SUCCESS;
}
开发者ID:foryuki,项目名称:viewpark,代码行数:26,代码来源:ImageAction.java
示例16: createMultiplePieChart
import org.jfree.chart.labels.StandardPieToolTipGenerator; //导入依赖的package包/类
/**
* Creates a chart that displays multiple pie plots. The chart object
* returned by this method uses a {@link MultiplePiePlot} instance as the
* plot.
*
* @param title the chart title (<code>null</code> permitted).
* @param dataset the dataset (<code>null</code> permitted).
* @param order the order that the data is extracted (by row or by column)
* (<code>null</code> not permitted).
* @param legend include a legend?
*
* @return A chart.
*/
public static JFreeChart createMultiplePieChart(String title,
CategoryDataset dataset, TableOrder order, boolean legend) {
if (order == null) {
throw new IllegalArgumentException("Null 'order' argument.");
}
MultiplePiePlot plot = new MultiplePiePlot(dataset);
plot.setDataExtractOrder(order);
plot.setBackgroundPaint(null);
plot.setOutlineStroke(null);
PieToolTipGenerator tooltipGenerator
= new StandardPieToolTipGenerator();
PiePlot pp = (PiePlot) plot.getPieChart().getPlot();
pp.setToolTipGenerator(tooltipGenerator);
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
plot, legend);
currentTheme.apply(chart);
return chart;
}
开发者ID:SpoonLabs,项目名称:astor,代码行数:34,代码来源:ChartFactory.java
注:本文中的org.jfree.chart.labels.StandardPieToolTipGenerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论