本文整理了Java中org.jfree.chart.plot.Plot.setNoDataMessage()
方法的一些代码示例,展示了Plot.setNoDataMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plot.setNoDataMessage()
方法的具体详情如下:
包路径:org.jfree.chart.plot.Plot
类名称:Plot
方法名:setNoDataMessage
[英]Sets the message that is displayed when the dataset is empty or null, and sends a PlotChangeEvent to all registered listeners.
[中]设置数据集为空或null时显示的消息,并向所有注册的侦听器发送PlotChangeEvent。
代码示例来源:origin: com.atlassian.confluence.extra.chart/chart-plugin
public static void setDefaults(JFreeChart chart)
{
chart.setBackgroundPaint(ChartDefaults.transparent);
chart.setBorderVisible(false);
chart.getPlot().setNoDataMessage("No Data Available");
setupPlot(chart.getPlot());
ChartUtil.setupTextTitle(chart.getTitle());
ChartUtil.setupLegendTitle(chart.getLegend());
}
代码示例来源:origin: com.atlassian.jira/jira-api
public static void setDefaults(JFreeChart chart, final I18nHelper i18nHelper)
{
chart.setBackgroundPaint(Color.WHITE);
chart.setBorderVisible(false);
chart.getPlot().setNoDataMessage(i18nHelper.getText("gadget.charts.no.data"));
setupPlot(chart.getPlot());
ChartUtil.setupTextTitle(chart.getTitle());
ChartUtil.setupLegendTitle(chart.getLegend());
}
代码示例来源:origin: pentaho/pentaho-platform
plot.setBackgroundImage( chartDefinition.getPlotBackgroundImage() );
plot.setNoDataMessage( chartDefinition.getNoDataMessage() );
内容来源于网络,如有侵权,请联系作者删除!