public abstract class AbstractCategoryItemLabelGenerator extends java.lang.Object implements org.jfree.util.PublicCloneable, java.lang.Cloneable, java.io.Serializable
CategoryItemRenderer
.Modifier | Constructor and Description |
---|---|
protected |
AbstractCategoryItemLabelGenerator(java.lang.String labelFormat,
java.text.DateFormat formatter)
Creates a label generator with the specified date formatter.
|
protected |
AbstractCategoryItemLabelGenerator(java.lang.String labelFormat,
java.text.NumberFormat formatter)
Creates a label generator with the specified number formatter.
|
protected |
AbstractCategoryItemLabelGenerator(java.lang.String labelFormat,
java.text.NumberFormat formatter,
java.text.NumberFormat percentFormatter)
Creates a label generator with the specified number formatter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns an independent copy of the generator.
|
protected java.lang.Object[] |
createItemArray(CategoryDataset dataset,
int row,
int column)
Creates the array of items that can be passed to the
MessageFormat class for creating labels. |
boolean |
equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object.
|
java.lang.String |
generateColumnLabel(CategoryDataset dataset,
int column)
Generates a label for the specified row.
|
protected java.lang.String |
generateLabelString(CategoryDataset dataset,
int row,
int column)
Generates a for the specified item.
|
java.lang.String |
generateRowLabel(CategoryDataset dataset,
int row)
Generates a label for the specified row.
|
java.text.DateFormat |
getDateFormat()
Returns the date formatter.
|
java.lang.String |
getLabelFormat()
Returns the label format string.
|
java.text.NumberFormat |
getNumberFormat()
Returns the number formatter.
|
int |
hashCode()
Returns a hash code for this instance.
|
protected AbstractCategoryItemLabelGenerator(java.lang.String labelFormat, java.text.NumberFormat formatter)
labelFormat
- the label format string (null
not
permitted).formatter
- the number formatter (null
not permitted).protected AbstractCategoryItemLabelGenerator(java.lang.String labelFormat, java.text.NumberFormat formatter, java.text.NumberFormat percentFormatter)
labelFormat
- the label format string (null
not
permitted).formatter
- the number formatter (null
not permitted).percentFormatter
- the percent formatter (null
not
permitted).protected AbstractCategoryItemLabelGenerator(java.lang.String labelFormat, java.text.DateFormat formatter)
labelFormat
- the label format string (null
not
permitted).formatter
- the date formatter (null
not permitted).public java.lang.String generateRowLabel(CategoryDataset dataset, int row)
dataset
- the dataset (null
not permitted).row
- the row index (zero-based).public java.lang.String generateColumnLabel(CategoryDataset dataset, int column)
dataset
- the dataset (null
not permitted).column
- the column index (zero-based).public java.lang.String getLabelFormat()
null
).public java.text.NumberFormat getNumberFormat()
null
).public java.text.DateFormat getDateFormat()
null
).protected java.lang.String generateLabelString(CategoryDataset dataset, int row, int column)
dataset
- the dataset (null
not permitted).row
- the row index (zero-based).column
- the column index (zero-based).null
).protected java.lang.Object[] createItemArray(CategoryDataset dataset, int row, int column)
MessageFormat
class for creating labels.dataset
- the dataset (null
not permitted).row
- the row index (zero-based).column
- the column index (zero-based).null
).public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other object (null
permitted).public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- should not happen.