Package org.jfree.chart.labels
Class SymbolicXYItemLabelGenerator
java.lang.Object
org.jfree.chart.labels.SymbolicXYItemLabelGenerator
- All Implemented Interfaces:
Serializable,Cloneable,XYItemLabelGenerator,XYToolTipGenerator,PublicCloneable
public class SymbolicXYItemLabelGenerator
extends Object
implements XYItemLabelGenerator, XYToolTipGenerator, Cloneable, PublicCloneable, Serializable
A standard item label generator for plots that use data from an
XYDataset.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns an independent copy of the generator.booleanTests if this object is equal to another.generateLabel(XYDataset dataset, int series, int category) Generates a label for the specified item.generateToolTip(XYDataset data, int series, int item) Generates a tool tip text item for a particular item within a series.inthashCode()Returns a hash code for this instance.
-
Constructor Details
-
SymbolicXYItemLabelGenerator
public SymbolicXYItemLabelGenerator()
-
-
Method Details
-
generateToolTip
Generates a tool tip text item for a particular item within a series.- Specified by:
generateToolTipin interfaceXYToolTipGenerator- Parameters:
data- the dataset.series- the series number (zero-based index).item- the item number (zero-based index).- Returns:
- The tool tip text (possibly
null).
-
generateLabel
Generates a label for the specified item. The label is typically a formatted version of the data value, but any text can be used.- Specified by:
generateLabelin interfaceXYItemLabelGenerator- Parameters:
dataset- the dataset (nullnot permitted).series- the series index (zero-based).category- the category index (zero-based).- Returns:
- The label (possibly
null).
-
clone
Returns an independent copy of the generator.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if cloning is not supported.
-
equals
Tests if this object is equal to another. -
hashCode
Returns a hash code for this instance.
-