| java.lang.Object org.jfree.chart.labels.AbstractPieItemLabelGenerator org.jfree.chart.labels.StandardPieSectionLabelGenerator
StandardPieSectionLabelGenerator | public class StandardPieSectionLabelGenerator extends AbstractPieItemLabelGenerator implements PieSectionLabelGenerator,Cloneable,Serializable(Code) | | A standard item label generator for plots that use data from a
PieDataset .
For the label format, use {0} where the pie section key should be inserted,
{1} for the absolute section value and {2} for the percent amount of the pie
section, e.g. "{0} = {1} ({2})" will display as
apple = 120 (5%) .
|
DEFAULT_SECTION_LABEL_FORMAT | final public static String DEFAULT_SECTION_LABEL_FORMAT(Code) | | The default section label format.
|
StandardPieSectionLabelGenerator | public StandardPieSectionLabelGenerator(String labelFormat)(Code) | | Creates a new section label generator using the specified label format
string, and platform default number and percentage formatters.
Parameters: labelFormat - the label format (null not permitted). |
StandardPieSectionLabelGenerator | public StandardPieSectionLabelGenerator(String labelFormat, NumberFormat numberFormat, NumberFormat percentFormat)(Code) | | Creates an item label generator using the specified number formatters.
Parameters: labelFormat - the label format string (null not permitted). Parameters: numberFormat - the format object for the values (null not permitted). Parameters: percentFormat - the format object for the percentages (null not permitted). |
equals | public boolean equals(Object obj)(Code) | | Tests the generator for equality with an arbitrary object.
Parameters: obj - the object to test against (null permitted). A boolean. |
generateSectionLabel | public String generateSectionLabel(PieDataset dataset, Comparable key)(Code) | | Generates a label for a pie section.
Parameters: dataset - the dataset (null not permitted). Parameters: key - the section key (null not permitted). The label (possibly null ). |
getAttributedLabel | public AttributedString getAttributedLabel(int section)(Code) | | Returns the attributed label for a section, or null if none
is defined.
Parameters: section - the section index. The attributed label. |
setAttributedLabel | public void setAttributedLabel(int section, AttributedString label)(Code) | | Sets the attributed label for a section.
Parameters: section - the section index. Parameters: label - the label (null permitted). |
|
|