Package org.jfree.chart.labels
Class CustomXYToolTipGenerator
java.lang.Object
org.jfree.chart.labels.CustomXYToolTipGenerator
- All Implemented Interfaces:
- Serializable,- Cloneable,- XYToolTipGenerator,- PublicCloneable
public class CustomXYToolTipGenerator
extends Object
implements XYToolTipGenerator, Cloneable, PublicCloneable, Serializable
A tool tip generator that stores custom tooltips. The dataset passed into
 the generateToolTip method is ignored.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddToolTipSeries(List toolTips) Adds a list of tooltips for a series.clone()Returns an independent copy of the generator.booleanTests if this object is equal to another.generateToolTip(XYDataset data, int series, int item) Generates a tool tip text item for a particular item within a series.intReturns the number of tool tip lists stored by the renderer.intgetToolTipCount(int list) Returns the number of tool tips in a given list.getToolTipText(int series, int item) Returns the tool tip text for an item.
- 
Constructor Details- 
CustomXYToolTipGeneratorpublic CustomXYToolTipGenerator()Default constructor.
 
- 
- 
Method Details- 
getListCountReturns the number of tool tip lists stored by the renderer.- Returns:
- The list count.
 
- 
getToolTipCountReturns the number of tool tips in a given list.- Parameters:
- list- the list index (zero based).
- Returns:
- The tooltip count.
 
- 
getToolTipTextReturns the tool tip text for an item.- Parameters:
- series- the series index.
- item- the item index.
- Returns:
- The tool tip text.
 
- 
addToolTipSeriesAdds a list of tooltips for a series.- Parameters:
- toolTips- the list of tool tips.
 
- 
generateToolTipGenerates a tool tip text item for a particular item within a series.- Specified by:
- generateToolTipin interface- XYToolTipGenerator
- Parameters:
- data- the dataset (ignored in this implementation).
- series- the series (zero-based index).
- item- the item (zero-based index).
- Returns:
- The tooltip text.
 
- 
cloneReturns an independent copy of the generator.- Specified by:
- clonein interface- PublicCloneable
- Overrides:
- clonein class- Object
- Returns:
- A clone.
- Throws:
- CloneNotSupportedException- if cloning is not supported.
 
- 
equalsTests if this object is equal to another.
 
-