List of usage examples for org.jfree.chart.plot CategoryPlot setBackgroundImage
public void setBackgroundImage(Image image)
From source file:org.openmicroscopy.shoola.util.ui.graphutils.BarPlot.java
/** * Creates the chart.//w w w . ja v a 2 s .co m * @see ChartObject#createChar() */ void createChart() { CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, rangeAxis, new CustomBarRenderer(colours)); if (backgroundImage != null) { plot.setRangeGridlinesVisible(false); plot.setDomainGridlinesVisible(false); plot.setBackgroundImage(backgroundImage); } chart = new JFreeChart(title, plot); }