org.jfree.chart.labels
Class BoxAndWhiskerXYToolTipGenerator
- Cloneable, PublicCloneable, Serializable, XYToolTipGenerator
An item label generator for plots that use data from a
BoxAndWhiskerXYDataset
.
The tooltip text and item label text are composed using a
java.text.MessageFormat
object, that can aggregate some or all of
the following string values into a message.
0 | Series Name |
1 | X (value or date) |
2 | Mean |
3 | Median |
4 | Minimum |
5 | Maximum |
6 | Quartile 1 |
7 | Quartile 3 |
protected Object[] | createItemArray(XYDataset dataset, int series, int item) - Creates the array of items that can be passed to the
MessageFormat class for creating labels.
|
boolean | equals(Object obj) - Tests if this object is equal to another.
|
BoxAndWhiskerXYToolTipGenerator
public BoxAndWhiskerXYToolTipGenerator(String toolTipFormat,
DateFormat dateFormat,
NumberFormat numberFormat)
Creates a new item label generator. If the date formatter is not
null
, the x-values will be formatted as dates.
toolTipFormat
- the tool tip format string (null
not
permitted).dateFormat
- the date formatter (null
permitted).numberFormat
- the number formatter (null
not
permitted).
createItemArray
protected Object[] createItemArray(XYDataset dataset,
int series,
int item)
Creates the array of items that can be passed to the
MessageFormat
class for creating labels.
- createItemArray in interface AbstractXYItemLabelGenerator
dataset
- the dataset (null
not permitted).series
- the series (zero-based index).item
- the item (zero-based index).