Example usage for org.jfree.chart.plot RingPlot setSectionOutlinesVisible

List of usage examples for org.jfree.chart.plot RingPlot setSectionOutlinesVisible

Introduction

In this page you can find the example usage for org.jfree.chart.plot RingPlot setSectionOutlinesVisible.

Prototype

public void setSectionOutlinesVisible(boolean visible) 

Source Link

Document

Sets the flag that controls whether or not the outline is drawn for each pie section, and sends a PlotChangeEvent to all registered listeners.

Usage

From source file:org.hxzon.demo.jfreechart.PieDatasetDemo2.java

private static JFreeChart createRingChart(PieDataset dataset) {

    RingPlot plot = new RingPlot(dataset);
    plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
    plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
    if (tooltips) {
        plot.setToolTipGenerator(new StandardPieToolTipGenerator());
    }/*from  w w w. jav  a  2  s  . co  m*/
    if (urls) {
        plot.setURLGenerator(new StandardPieURLGenerator());
    }
    JFreeChart chart = new JFreeChart("Ring Chart Demo 1", JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
    plot.setSectionOutlinesVisible(false);
    plot.setNoDataMessage("No data available");

    return chart;

}