edu.ucla.stat.SOCR.chart.gui
Class CustomPieSectionLabelGenerator

java.lang.Object
  extended by 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).


Constructor Summary
CustomPieSectionLabelGenerator()
           
 
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
 

Constructor Detail

CustomPieSectionLabelGenerator

public CustomPieSectionLabelGenerator()
Method Detail

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