org.jfree.chart.labels
public class StandardCategoryToolTipGenerator extends AbstractCategoryItemLabelGenerator implements CategoryToolTipGenerator, Serializable
Field Summary | |
---|---|
static String | DEFAULT_TOOL_TIP_FORMAT_STRING The default format string. |
Constructor Summary | |
---|---|
StandardCategoryToolTipGenerator()
Creates a new generator with a default number formatter. | |
StandardCategoryToolTipGenerator(String labelFormat, NumberFormat formatter)
Creates a new generator with the specified number formatter.
| |
StandardCategoryToolTipGenerator(String labelFormat, DateFormat formatter)
Creates a new generator with the specified date formatter.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests this generator for equality with an arbitrary object.
|
String | generateToolTip(CategoryDataset dataset, int row, int column)
Generates the tool tip text for an item in a dataset. |
Parameters: labelFormat the label format string (null
not
permitted). formatter the number formatter (null
not permitted).
Parameters: labelFormat the label format string (null
not
permitted). formatter the date formatter (null
not permitted).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: dataset the dataset (null
not permitted). row the row index (zero-based). column the column index (zero-based).
Returns: The tooltip text (possibly null
).