public class BoxAndWhiskerXYToolTipGenerator extends StandardXYToolTipGenerator implements XYToolTipGenerator, java.lang.Cloneable, java.io.Serializable
BoxAndWhiskerXYDataset
.
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TOOL_TIP_FORMAT
The default tooltip format string.
|
Constructor and Description |
---|
BoxAndWhiskerXYToolTipGenerator()
Creates a default item label generator.
|
BoxAndWhiskerXYToolTipGenerator(java.lang.String toolTipFormat,
java.text.DateFormat dateFormat,
java.text.NumberFormat numberFormat)
Creates a new item label generator.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.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(java.lang.Object obj)
Tests if this object is equal to another.
|
clone, generateToolTip, getTimeSeriesInstance
generateLabelString, getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat, hashCode
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
generateToolTip
public static final java.lang.String DEFAULT_TOOL_TIP_FORMAT
public BoxAndWhiskerXYToolTipGenerator()
public BoxAndWhiskerXYToolTipGenerator(java.lang.String toolTipFormat, java.text.DateFormat dateFormat, java.text.NumberFormat numberFormat)
null
, the x-values will be formatted as dates.toolTipFormat
- the tool tip format string (null
not
permitted).numberFormat
- the number formatter (null
not
permitted).dateFormat
- the date formatter (null
permitted).protected java.lang.Object[] createItemArray(XYDataset dataset, int series, int item)
MessageFormat
class for creating labels.createItemArray
in class AbstractXYItemLabelGenerator
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 StandardXYToolTipGenerator
obj
- the other object.