public class CustomXYToolTipGenerator extends java.lang.Object implements XYToolTipGenerator, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
Constructor and Description |
---|
CustomXYToolTipGenerator()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addToolTipSeries(java.util.List toolTips)
Adds a list of tooltips for a series.
|
java.lang.Object |
clone()
Returns an independent copy of the generator.
|
boolean |
equals(java.lang.Object obj)
Tests if this object is equal to another.
|
java.lang.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.
|
java.lang.String |
getToolTipText(int series,
int item)
Returns the tool tip text for an item.
|
public CustomXYToolTipGenerator()
public int getListCount()
public int getToolTipCount(int list)
list
- the list index (zero based).public java.lang.String getToolTipText(int series, int item)
series
- the series index.item
- the item index.public void addToolTipSeries(java.util.List toolTips)
toolTips
- the list of tool tips.public java.lang.String generateToolTip(XYDataset data, int series, int item)
generateToolTip
in interface XYToolTipGenerator
data
- the dataset (ignored in this implementation).series
- the series (zero-based index).item
- the item (zero-based index).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if cloning is not supported.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the other object.