public abstract class AbstractCategoryItemLabelGenerator extends Object implements PublicCloneable, Cloneable, Serializable
CategoryItemRenderer
.Modifier | Constructor and Description |
---|---|
protected |
AbstractCategoryItemLabelGenerator(String labelFormat,
DateFormat formatter)
Creates a label generator with the specified date formatter.
|
protected |
AbstractCategoryItemLabelGenerator(String labelFormat,
NumberFormat formatter)
Creates a label generator with the specified number formatter.
|
protected |
AbstractCategoryItemLabelGenerator(String labelFormat,
NumberFormat formatter,
NumberFormat percentFormatter)
Creates a label generator with the specified number formatter.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns an independent copy of the generator.
|
protected 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(Object obj)
Tests this object for equality with an arbitrary object.
|
String |
generateColumnLabel(CategoryDataset dataset,
int column)
Generates a label for the specified row.
|
protected String |
generateLabelString(CategoryDataset dataset,
int row,
int column)
Generates a for the specified item.
|
String |
generateRowLabel(CategoryDataset dataset,
int row)
Generates a label for the specified row.
|
DateFormat |
getDateFormat()
Returns the date formatter.
|
String |
getLabelFormat()
Returns the label format string.
|
NumberFormat |
getNumberFormat()
Returns the number formatter.
|
int |
hashCode()
Returns a hash code for this instance.
|
protected AbstractCategoryItemLabelGenerator(String labelFormat, NumberFormat formatter)
labelFormat
- the label format string (null
not
permitted).formatter
- the number formatter (null
not permitted).protected AbstractCategoryItemLabelGenerator(String labelFormat, NumberFormat formatter, 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(String labelFormat, DateFormat formatter)
labelFormat
- the label format string (null
not
permitted).formatter
- the date formatter (null
not permitted).public String generateRowLabel(CategoryDataset dataset, int row)
dataset
- the dataset (null
not permitted).row
- the row index (zero-based).public String generateColumnLabel(CategoryDataset dataset, int column)
dataset
- the dataset (null
not permitted).column
- the column index (zero-based).public String getLabelFormat()
null
).public NumberFormat getNumberFormat()
null
).public DateFormat getDateFormat()
null
).protected 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 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(Object obj)
public int hashCode()
public Object clone() throws CloneNotSupportedException
clone
in interface PublicCloneable
clone
in class Object
CloneNotSupportedException
- should not happen.Copyright © 2001–2017 JFree.org. All rights reserved.