edu.ucla.stat.SOCR.chart.gui
Class CustomPieSectionLabelGenerator
java.lang.Object
edu.ucla.stat.SOCR.chart.gui.CustomPieSectionLabelGenerator
- All Implemented Interfaces:
- org.jfree.chart.labels.PieSectionLabelGenerator
public class CustomPieSectionLabelGenerator
- extends java.lang.Object
- implements org.jfree.chart.labels.PieSectionLabelGenerator
A custom label generator (returns null for one item as a test).
|
Method Summary |
java.text.AttributedString |
generateAttributedSectionLabel(org.jfree.data.general.PieDataset dataset,
java.lang.Comparable key)
|
java.lang.String |
generateSectionLabel(org.jfree.data.general.PieDataset dataset,
java.lang.Comparable key)
Generates a label for a pie section. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomPieSectionLabelGenerator
public CustomPieSectionLabelGenerator()
generateSectionLabel
public java.lang.String generateSectionLabel(org.jfree.data.general.PieDataset dataset,
java.lang.Comparable key)
- Generates a label for a pie section.
- Specified by:
generateSectionLabel in interface org.jfree.chart.labels.PieSectionLabelGenerator
- Parameters:
dataset - the dataset (null not permitted).key - the section key (null not permitted).
- Returns:
- the label (possibly
null).
generateAttributedSectionLabel
public java.text.AttributedString generateAttributedSectionLabel(org.jfree.data.general.PieDataset dataset,
java.lang.Comparable key)
- Specified by:
generateAttributedSectionLabel in interface org.jfree.chart.labels.PieSectionLabelGenerator