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

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.gui.CustomPieSectionLabelGenerator

public class CustomPieSectionLabelGenerator
extends java.lang.Object

A custom label generator (returns null for one item as a test).


Constructor Summary
CustomPieSectionLabelGenerator()
           
 
Method Summary
 java.text.AttributedString generateAttributedSectionLabel(PieDataset dataset, java.lang.Comparable key)
           
 java.lang.String generateSectionLabel(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(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

public java.text.AttributedString generateAttributedSectionLabel(PieDataset dataset,
                                                                 java.lang.Comparable key)