public class AbstractPieItemLabelGenerator extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPieItemLabelGenerator(String labelFormat,
NumberFormat numberFormat,
NumberFormat percentFormat)
Creates an item label generator using the specified number formatters.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns an independent copy of the generator.
|
protected Object[] |
createItemArray(PieDataset dataset,
Comparable key)
Creates the array of items that can be passed to the
MessageFormat class for creating labels. |
boolean |
equals(Object obj)
Tests the generator for equality with an arbitrary object.
|
protected String |
generateSectionLabel(PieDataset dataset,
Comparable key)
Generates a label for a pie section.
|
String |
getLabelFormat()
Returns the label format string.
|
NumberFormat |
getNumberFormat()
Returns the number formatter.
|
NumberFormat |
getPercentFormat()
Returns the percent formatter.
|
int |
hashCode()
Returns a hash code for this instance.
|
protected AbstractPieItemLabelGenerator(String labelFormat, NumberFormat numberFormat, NumberFormat percentFormat)
labelFormat - the label format string (null not
permitted).numberFormat - the format object for the values (null
not permitted).percentFormat - the format object for the percentages
(null not permitted).public String getLabelFormat()
null).public NumberFormat getNumberFormat()
null).public NumberFormat getPercentFormat()
null).protected Object[] createItemArray(PieDataset dataset, Comparable key)
MessageFormat class for creating labels. The returned array
contains four values:
String;dataset - the dataset (null not permitted).key - the key (null not permitted).null).protected String generateSectionLabel(PieDataset dataset, Comparable key)
dataset - the dataset (null not permitted).key - the section key (null not permitted).null).public boolean equals(Object obj)
public int hashCode()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - should not happen.Copyright © 2001–2014 JFree.org. All rights reserved.