- java.lang.Object
-
- org.jfree.chart.labels.SymbolicXYItemLabelGenerator
-
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable,XYItemLabelGenerator,XYToolTipGenerator
public class SymbolicXYItemLabelGenerator extends Object implements XYItemLabelGenerator, XYToolTipGenerator, Cloneable, PublicCloneable, Serializable
A standard item label generator for plots that use data from anXYDataset.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SymbolicXYItemLabelGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns an independent copy of the generator.booleanequals(Object obj)Tests if this object is equal to another.StringgenerateLabel(XYDataset dataset, int series, int category)Generates a label for the specified item.StringgenerateToolTip(XYDataset dataset, 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 Detail
-
SymbolicXYItemLabelGenerator
public SymbolicXYItemLabelGenerator()
-
-
Method Detail
-
generateToolTip
public String generateToolTip(XYDataset dataset, int series, int item)
Generates a tool tip text item for a particular item within a series.- Specified by:
generateToolTipin interfaceXYToolTipGenerator- Parameters:
dataset- the dataset (nullnot permitted).series- the series number (zero-based index).item- the item number (zero-based index).- Returns:
- The tool tip text (possibly
null).
-
generateLabel
public String generateLabel(XYDataset dataset, int series, int category)
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
public Object clone() throws CloneNotSupportedException
Returns an independent copy of the generator.- Specified by:
clonein interfacePublicCloneable- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- if cloning is not supported.
-
-