本文整理了Java中org.jfree.chart.plot.Plot.setBackgroundAlpha()
方法的一些代码示例,展示了Plot.setBackgroundAlpha()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plot.setBackgroundAlpha()
方法的具体详情如下:
包路径:org.jfree.chart.plot.Plot
类名称:Plot
方法名:setBackgroundAlpha
[英]Sets the alpha transparency of the plot area background, and notifies registered listeners that the plot has been modified.
[中]设置绘图区域背景的alpha透明度,并通知已注册的侦听器绘图已被修改。
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
public static void customizePlot(Plot plot, ChartParams params)
{
if (params.get(ChartParams.PLOT_BACKGROUND_COLOR) != null) {
plot.setBackgroundPaint(params.getColor(ChartParams.PLOT_BACKGROUND_COLOR));
}
if (params.get(ChartParams.PLOT_BACKGROUND_ALPHA) != null) {
plot.setBackgroundAlpha(params.getFloat(ChartParams.PLOT_BACKGROUND_ALPHA).floatValue());
}
if (params.get(ChartParams.PLOT_FOREGROUND_ALPHA) != null) {
plot.setForegroundAlpha(params.getFloat(ChartParams.PLOT_FOREGROUND_ALPHA).floatValue());
}
if (params.get(ChartParams.PLOT_INSERTS) != null) {
plot.setInsets(params.getRectangleInsets(ChartParams.PLOT_INSERTS));
}
if (params.get(ChartParams.PLOT_OUTLINE_COLOR) != null) {
plot.setOutlinePaint(params.getColor(ChartParams.PLOT_OUTLINE_COLOR));
}
if (params.get(ChartParams.PLOT_OUTLINE_STROKE) != null) {
plot.setOutlineStroke(params.getStroke(ChartParams.PLOT_OUTLINE_STROKE));
}
}
代码示例来源:origin: jasperreports/jasperreports
plot.setBackgroundAlpha(backgroundAlpha);
plot.setForegroundAlpha(foregroundAlpha);
代码示例来源:origin: org.jboss.seam/jboss-seam-pdf
public void configurePlot(Plot plot) {
if (getPlotBackgroundAlpha() != null) {
plot.setBackgroundAlpha(getPlotBackgroundAlpha());
}
if (getPlotForegroundAlpha() != null) {
plot.setForegroundAlpha(getPlotForegroundAlpha());
}
if (getPlotBackgroundPaint() != null) {
plot.setBackgroundPaint(findColor(getPlotBackgroundPaint()));
}
if (getPlotOutlinePaint() != null) {
plot.setOutlinePaint(findColor(getPlotOutlinePaint()));
}
if (getPlotOutlineStroke() != null) {
plot.setOutlineStroke(findStroke(getPlotOutlineStroke()));
}
}
代码示例来源:origin: org.zkoss.zk/zkex
plot.setBackgroundAlpha(alpha);
内容来源于网络,如有侵权,请联系作者删除!