- java.lang.Object
-
- org.jfree.chart.labels.AbstractXYItemLabelGenerator
-
- org.jfree.chart.labels.StandardXYToolTipGenerator
-
- org.jfree.chart.labels.BoxAndWhiskerXYToolTipGenerator
-
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable,XYToolTipGenerator
public class BoxAndWhiskerXYToolTipGenerator extends StandardXYToolTipGenerator implements XYToolTipGenerator, Cloneable, Serializable
An item label generator for plots that use data from aBoxAndWhiskerXYDataset.The tooltip text and item label text are composed using a
MessageFormatobject, 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
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_TOOL_TIP_FORMATThe default tooltip format string.
-
Constructor Summary
Constructors Constructor Description BoxAndWhiskerXYToolTipGenerator()Creates a default item label generator.BoxAndWhiskerXYToolTipGenerator(String toolTipFormat, DateFormat dateFormat, NumberFormat numberFormat)Creates a new item label generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object[]createItemArray(XYDataset dataset, int series, int item)Creates the array of items that can be passed to theMessageFormatclass for creating labels.booleanequals(Object obj)Tests if this object is equal to another.-
Methods inherited from class org.jfree.chart.labels.StandardXYToolTipGenerator
clone, generateToolTip, getTimeSeriesInstance, hashCode
-
Methods inherited from class org.jfree.chart.labels.AbstractXYItemLabelGenerator
generateLabelString, getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.chart.labels.XYToolTipGenerator
generateToolTip
-
-
-
-
Field Detail
-
DEFAULT_TOOL_TIP_FORMAT
public static final String DEFAULT_TOOL_TIP_FORMAT
The default tooltip format string.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BoxAndWhiskerXYToolTipGenerator
public BoxAndWhiskerXYToolTipGenerator()
Creates a default item label generator.
-
BoxAndWhiskerXYToolTipGenerator
public BoxAndWhiskerXYToolTipGenerator(String toolTipFormat, DateFormat dateFormat, NumberFormat numberFormat)
Creates a new item label generator. If the date formatter is notnull, the x-values will be formatted as dates.- Parameters:
toolTipFormat- the tool tip format string (nullnot permitted).numberFormat- the number formatter (nullnot permitted).dateFormat- the date formatter (nullpermitted).
-
-
Method Detail
-
createItemArray
protected Object[] createItemArray(XYDataset dataset, int series, int item)
Creates the array of items that can be passed to theMessageFormatclass for creating labels.- Overrides:
createItemArrayin classAbstractXYItemLabelGenerator- Parameters:
dataset- the dataset (nullnot permitted).series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The items (never
null).
-
equals
public boolean equals(Object obj)
Tests if this object is equal to another.- Overrides:
equalsin classStandardXYToolTipGenerator- Parameters:
obj- the other object.- Returns:
- A boolean.
-
-