org.jfree.chart.labels
public class BoxAndWhiskerToolTipGenerator extends StandardCategoryToolTipGenerator implements CategoryToolTipGenerator, java.lang.Cloneable, java.io.Serializable
BoxAndWhiskerCategoryDataset
.
The tooltip text and item label text are composed using a
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 |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TOOL_TIP_FORMAT
The default tooltip format string.
|
DEFAULT_TOOL_TIP_FORMAT_STRING
Constructor and Description |
---|
BoxAndWhiskerToolTipGenerator()
Creates a default tool tip generator.
|
BoxAndWhiskerToolTipGenerator(java.lang.String format,
java.text.NumberFormat formatter)
Creates a tool tip formatter.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object[] |
createItemArray(CategoryDataset dataset,
int series,
int item)
Creates the array of items that can be passed to the
MessageFormat class for creating labels. |
boolean |
equals(java.lang.Object obj)
Tests if this object is equal to another.
|
generateToolTip
clone, generateColumnLabel, generateLabelString, generateRowLabel, getDateFormat, getLabelFormat, getNumberFormat, hashCode
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
generateToolTip
public static final java.lang.String DEFAULT_TOOL_TIP_FORMAT
public BoxAndWhiskerToolTipGenerator()
public BoxAndWhiskerToolTipGenerator(java.lang.String format, java.text.NumberFormat formatter)
format
- the tool tip format string.formatter
- the formatter.protected java.lang.Object[] createItemArray(CategoryDataset dataset, int series, int item)
MessageFormat
class for creating labels.createItemArray
in class AbstractCategoryItemLabelGenerator
dataset
- the dataset (null
not permitted).series
- the series (zero-based index).item
- the item (zero-based index).null
).public boolean equals(java.lang.Object obj)
equals
in class StandardCategoryToolTipGenerator
obj
- the other object.Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.