Header
And More


org.jfree.chart.labels
Interface PieSectionLabelGenerator

All Known Implementing Classes:
StandardPieSectionLabelGenerator

public interface PieSectionLabelGenerator

Interface for a label generator for plots that use data from a PieDataset.


Method Summary
 java.text.AttributedString generateAttributedSectionLabel(PieDataset dataset, java.lang.Comparable key)
          Generates an attributed label for the specified series, or null if no attributed label is available (in which case, the string returned by generateSectionLabel(PieDataset, Comparable) will provide the fallback).
 java.lang.String generateSectionLabel(PieDataset dataset, java.lang.Comparable key)
          Generates a label for a pie section.
 

Method Detail

generateSectionLabel

java.lang.String generateSectionLabel(PieDataset dataset,
                                      java.lang.Comparable key)
Generates a label for a pie section.

Parameters:
dataset - the dataset (null not permitted).
key - the section key (null not permitted).
Returns:
The label (possibly null).

generateAttributedSectionLabel

java.text.AttributedString generateAttributedSectionLabel(PieDataset dataset,
                                                          java.lang.Comparable key)
Generates an attributed label for the specified series, or null if no attributed label is available (in which case, the string returned by generateSectionLabel(PieDataset, Comparable) will provide the fallback). Only certain attributes are recognised by the code that ultimately displays the labels:

Parameters:
dataset - the dataset.
key - the key.
Returns:
An attributed label (possibly null).

Footer
And More


Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.