本文整理了Java中org.jfree.chart.plot.Plot.setBackgroundImage()
方法的一些代码示例,展示了Plot.setBackgroundImage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plot.setBackgroundImage()
方法的具体详情如下:
包路径:org.jfree.chart.plot.Plot
类名称:Plot
方法名:setBackgroundImage
[英]Sets the background image for the plot and sends a PlotChangeEvent to all registered listeners.
[中]设置绘图的背景图像,并向所有注册的侦听器发送PlotChangeEvent。
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public ChartPanel getPlotCanvas() {
final JFreeChart chart = ChartFactory.createPieChart(
"JBroFuzz Status Code Pie Chart", dataset, true, // legend?
true, // tooltips?
false // URLs?
);
final Plot plot = chart.getPlot();
plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
return new ChartPanel(chart);
}
代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport
chart.getPlot().setBackgroundImage(image);
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public ChartPanel getPlotCanvas() {
final JFreeChart chart = ChartFactory.createBarChart(
"JBroFuzz Jaccard Index Bar Chart", // chart title
"File Name", // domain axis label
"Jaccard Similarity Coefficient", // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
false, // include legend
true, // tooltips?
true // URLs?
);
final Plot plot = chart.getPlot();
plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
final CategoryItemRenderer renderer = chart.getCategoryPlot().getRenderer();
renderer
.setBaseToolTipGenerator(new StandardCategoryToolTipGenerator());
return new ChartPanel(chart);
}
代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport
Image image = ImageIO.read(rinfo.getInputStream());
rinfo.getInputStream().close();
chart.getPlot().setBackgroundImage(image);
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public ChartPanel getPlotCanvas() {
final JFreeChart chart = ChartFactory.createBarChart(
"JBroFuzz Response Size Bar Chart", // chart title
"File Name", // domain axis label
"Response Size (bytes)", // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
false, // include legend
true, // tooltips?
true // URLs?
);
final Plot plot = chart.getPlot();
plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
final CategoryItemRenderer renderer =
chart.getCategoryPlot().getRenderer();
renderer.setBaseToolTipGenerator(
new StandardCategoryToolTipGenerator());
return new ChartPanel(chart);
}
代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport
chart.getPlot().setBackgroundImage(image);
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public ChartPanel getPlotCanvas() {
final JFreeChart chart = ChartFactory.createBarChart(
"JBroFuzz Response Time Bar Chart", // chart title
"File Name", // domain axis label
"Response Time (ms)", // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
false, // include legend
true, // tooltips?
true // URLs?
);
final Plot plot = chart.getPlot();
plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
final CategoryItemRenderer renderer =
chart.getCategoryPlot().getRenderer();
renderer.setBaseToolTipGenerator(
new StandardCategoryToolTipGenerator());
return new ChartPanel(chart);
}
代码示例来源:origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport
chart.getPlot().setBackgroundImage(image);
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public ChartPanel getPlotCanvas() {
final JFreeChart chart = ChartFactory.createBarChart(
"JBroFuzz Response Header Size Bar Chart", // chart title
"File Name", // domain axis label
"Response Header Size (bytes)", // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
false, // include legend
true, // tooltips?
true // URLs?
);
final Plot plot = chart.getPlot();
plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
final CategoryItemRenderer renderer =
chart.getCategoryPlot().getRenderer();
renderer.setBaseToolTipGenerator(
new StandardCategoryToolTipGenerator());
return new ChartPanel(chart);
}
代码示例来源:origin: pentaho/pentaho-platform
private static void updatePlot( final Plot plot, final ChartDefinition chartDefinition ) {
plot.setBackgroundPaint( chartDefinition.getPlotBackgroundPaint() );
plot.setBackgroundImage( chartDefinition.getPlotBackgroundImage() );
代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz
public ChartPanel getPlotCanvas() {
final JFreeChart chart = ChartFactory.createBarChart(
"JBroFuzz Hamming Distance Bar Chart", // chart title
"File Name", // domain axis label
"Hamming Distance", // range axis label
dataset, // data
PlotOrientation.VERTICAL, // orientation
false, // include legend
true, // tooltips?
true // URLs?
);
final Plot plot = chart.getPlot();
plot.setBackgroundImage(ImageCreator.IMG_OWASP_MED.getImage());
plot.setBackgroundImageAlignment(Align.TOP_RIGHT);
final CategoryItemRenderer renderer =
chart.getCategoryPlot().getRenderer();
renderer.setBaseToolTipGenerator(
new StandardCategoryToolTipGenerator());
return new ChartPanel(chart);
}
内容来源于网络,如有侵权,请联系作者删除!