org.jfree.chart.labels
Class StandardXYToolTipGenerator
- Cloneable, PublicCloneable, Serializable, XYToolTipGenerator
StandardXYToolTipGenerator()- Creates a tool tip generator using default number formatters.
|
StandardXYToolTipGenerator(String formatString, DateFormat xFormat, DateFormat yFormat)- Creates a tool tip generator using the specified date formatters.
|
StandardXYToolTipGenerator(String formatString, DateFormat xFormat, NumberFormat yFormat)- Creates a tool tip generator using the specified number formatters.
|
StandardXYToolTipGenerator(String formatString, NumberFormat xFormat, NumberFormat yFormat)- Creates a tool tip generator using the specified number formatters.
|
StandardXYToolTipGenerator
public StandardXYToolTipGenerator(String formatString,
DateFormat xFormat,
DateFormat yFormat) Creates a tool tip generator using the specified date formatters.
formatString - the label format string (null not
permitted).xFormat - the format object for the x values (null
not permitted).yFormat - the format object for the y values (null
not permitted).
StandardXYToolTipGenerator
public StandardXYToolTipGenerator(String formatString,
DateFormat xFormat,
NumberFormat yFormat) Creates a tool tip generator using the specified number formatters.
formatString - the label format string (null not
permitted).xFormat - the format object for the x values (null
not permitted).yFormat - the format object for the y values (null
not permitted).
StandardXYToolTipGenerator
public StandardXYToolTipGenerator(String formatString,
NumberFormat xFormat,
NumberFormat yFormat) Creates a tool tip generator using the specified number formatters.
formatString - the item label format string (null not
permitted).xFormat - the format object for the x values (null
not permitted).yFormat - the format object for the y values (null
not permitted).
generateToolTip
public String generateToolTip(XYDataset dataset,
int series,
int item) Generates the tool tip text for an item in a dataset.
- generateToolTip in interface XYToolTipGenerator
dataset - the dataset (null not permitted).series - the series index (zero-based).item - the item index (zero-based).
- The tooltip text (possibly
null).