Example usage for org.jfree.chart.plot PiePlot3D setBackgroundImage

List of usage examples for org.jfree.chart.plot PiePlot3D setBackgroundImage

Introduction

In this page you can find the example usage for org.jfree.chart.plot PiePlot3D setBackgroundImage.

Prototype

public void setBackgroundImage(Image image) 

Source Link

Document

Sets the background image for the plot and sends a PlotChangeEvent to all registered listeners.

Usage

From source file:org.openmicroscopy.shoola.util.ui.graphutils.PieChart.java

/** 
 * Creates the chart.//  w  ww  .j  a  v a  2 s . co  m
 * @see ChartObject#createChar()
 */
void createChart() {
    chart = ChartFactory.createPieChart3D(title, dataset, false, true, false);
    PiePlot3D plot = (PiePlot3D) chart.getPlot();
    if (backgroundImage != null) {
        plot.setBackgroundImage(backgroundImage);
    }
    plot.setDirection(Rotation.CLOCKWISE);
    plot.setForegroundAlpha(0.55f);
}