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

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

Introduction

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

Prototype

public void setLegendLabelGenerator(PieSectionLabelGenerator generator) 

Source Link

Document

Sets the legend label generator and sends a PlotChangeEvent to all registered listeners.

Usage

From source file:unikn.dbis.univis.visualization.chart.RingChart.java

/**
 * Makes the plot.//  w w w. j  av a  2s .com
 */
protected void plot() {
    RingPlot plot = (RingPlot) getChart().getPlot();
    plot.setStartAngle(290);
    plot.setDirection(Rotation.CLOCKWISE);
    plot.setForegroundAlpha(0.5f);
    plot.setNoDataMessage("No data available");
    plot.setLabelGenerator(null);
    plot.setLegendLabelGenerator(new LabelGenerator(createTotal()));
}