Package org.jfree.chart.labels
Class AbstractXYItemLabelGenerator
java.lang.Object
org.jfree.chart.labels.AbstractXYItemLabelGenerator
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
StandardXYLabelGenerator,StandardXYToolTipGenerator
public class AbstractXYItemLabelGenerator extends Object implements Cloneable, Serializable
A base class for creating item label generators.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description Objectclone()Returns an independent copy of the generator.booleanequals(Object obj)Tests this object for equality with an arbitrary object.StringgenerateLabelString(XYDataset dataset, int series, int item)Generates a label string for an item in the dataset.StringgetFormatString()Returns the format string (this controls the overall structure of the label).DateFormatgetXDateFormat()Returns the date formatter for the x-values.NumberFormatgetXFormat()Returns the number formatter for the x-values.DateFormatgetYDateFormat()Returns the date formatter for the y-values.NumberFormatgetYFormat()Returns the number formatter for the y-values.
-
Method Details
-
getFormatString
Returns the format string (this controls the overall structure of the label).- Returns:
- The format string (never
null).
-
getXFormat
Returns the number formatter for the x-values.- Returns:
- The number formatter (possibly
null).
-
getXDateFormat
Returns the date formatter for the x-values.- Returns:
- The date formatter (possibly
null).
-
getYFormat
Returns the number formatter for the y-values.- Returns:
- the number formatter (possibly
null).
-
getYDateFormat
Returns the date formatter for the y-values.- Returns:
- The date formatter (possibly
null).
-
generateLabelString
Generates a label string for an item in the dataset.- Parameters:
dataset- the dataset (nullnot permitted).series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The label (possibly
null).
-
equals
Tests this object for equality with an arbitrary object. -
clone
Returns an independent copy of the generator.- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if cloning is not supported.
-