Example usage for org.jfree.chart.labels PieSectionLabelGenerator generateSectionLabel

List of usage examples for org.jfree.chart.labels PieSectionLabelGenerator generateSectionLabel

Introduction

In this page you can find the example usage for org.jfree.chart.labels PieSectionLabelGenerator generateSectionLabel.

Prototype

public String generateSectionLabel(PieDataset dataset, Comparable key);

Source Link

Document

Generates a label for a pie section.

Usage

From source file:net.sourceforge.processdash.ui.lib.chart.StandardDiscItemRenderer.java

protected String lookupDiscLabel(PieDataset dataset, Comparable key) {
    PieSectionLabelGenerator labelGenerator = plot.getLabelGenerator();
    if (labelGenerator == null)
        return null;
    else//from  w  ww  .ja v  a2 s  .c o m
        return labelGenerator.generateSectionLabel(dataset, key);
}