org.jfree.chart.labels
Class CustomXYToolTipGenerator
java.lang.Object
org.jfree.chart.labels.CustomXYToolTipGenerator
- Cloneable, PublicCloneable, Serializable, XYToolTipGenerator
A tool tip generator that stores custom tooltips. The dataset passed into
the generateToolTip method is ignored.
void | addToolTipSeries(List toolTips) - Adds a list of tooltips for a series.
|
Object | clone() - Returns an independent copy of the generator.
|
boolean | equals(Object obj) - Tests if this object is equal to another.
|
String | generateToolTip(XYDataset data, int series, int item) - Generates a tool tip text item for a particular item within a series.
|
int | getListCount() - Returns the number of tool tip lists stored by the renderer.
|
int | getToolTipCount(int list) - Returns the number of tool tips in a given list.
|
String | getToolTipText(int series, int item) - Returns the tool tip text for an item.
|
addToolTipSeries
public void addToolTipSeries(List toolTips)
Adds a list of tooltips for a series.
toolTips
- the list of tool tips.
clone
public Object clone()
throws CloneNotSupportedException
Returns an independent copy of the generator.
equals
public boolean equals(Object obj)
Tests if this object is equal to another.
generateToolTip
public String generateToolTip(XYDataset data,
int series,
int item)
Generates a tool tip text item for a particular item within a series.
- generateToolTip in interface XYToolTipGenerator
data
- the dataset (ignored in this implementation).series
- the series (zero-based index).item
- the item (zero-based index).
getListCount
public int getListCount()
Returns the number of tool tip lists stored by the renderer.
getToolTipCount
public int getToolTipCount(int list)
Returns the number of tool tips in a given list.
list
- the list index (zero based).
getToolTipText
public String getToolTipText(int series,
int item)
Returns the tool tip text for an item.
series
- the series index.item
- the item index.