public class IntervalXYToolTipGenerator extends AbstractXYItemLabelGenerator implements XYToolTipGenerator, Cloneable, PublicCloneable, Serializable
IntervalXYDataset
interface.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TOOL_TIP_FORMAT
The default item label format.
|
Constructor and Description |
---|
IntervalXYToolTipGenerator()
Creates a new tooltip generator using default number formatters.
|
IntervalXYToolTipGenerator(String formatString,
DateFormat xFormat,
DateFormat yFormat)
Creates a new tool tip generator using the specified date formatters.
|
IntervalXYToolTipGenerator(String formatString,
DateFormat xFormat,
NumberFormat yFormat)
Creates a new tool tip generator using the specified formatters.
|
IntervalXYToolTipGenerator(String formatString,
NumberFormat xFormat,
DateFormat yFormat)
Creates a new tool tip generator using the specified formatters (a
number formatter for the x-values and a date formatter for the
y-values).
|
IntervalXYToolTipGenerator(String formatString,
NumberFormat xFormat,
NumberFormat yFormat)
Creates a new tooltip generator using the specified number formatters.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns an independent copy of the generator.
|
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 this object for equality with an arbitrary object.
|
String |
generateToolTip(XYDataset dataset,
int series,
int item)
Generates the tool tip text for an item in a dataset.
|
generateLabelString, getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat, hashCode
public static final String DEFAULT_TOOL_TIP_FORMAT
public IntervalXYToolTipGenerator()
public IntervalXYToolTipGenerator(String formatString, NumberFormat xFormat, NumberFormat yFormat)
formatString
- the item label format string (null
not
permitted).xFormat
- the format object for the x values (null
not permitted).yFormat
- the format object for the y values (null
not permitted).public IntervalXYToolTipGenerator(String formatString, DateFormat xFormat, NumberFormat yFormat)
formatString
- the item label format string (null
not permitted).xFormat
- the format object for the x values (null
not permitted).yFormat
- the format object for the y values (null
not permitted).public IntervalXYToolTipGenerator(String formatString, NumberFormat xFormat, DateFormat yFormat)
formatString
- the item label format string (null
not permitted).xFormat
- the format object for the x values (null
permitted).yFormat
- the format object for the y values (null
not permitted).public IntervalXYToolTipGenerator(String formatString, DateFormat xFormat, DateFormat yFormat)
formatString
- the label format string (null
not
permitted).xFormat
- the format object for the x values (null
not
permitted).yFormat
- the format object for the y values (null
not permitted).protected 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).String
objects (never null
).public String generateToolTip(XYDataset dataset, int series, int item)
generateToolTip
in interface XYToolTipGenerator
dataset
- the dataset (null
not permitted).series
- the series index (zero-based).item
- the item index (zero-based).null
).public Object clone() throws CloneNotSupportedException
clone
in interface PublicCloneable
clone
in class AbstractXYItemLabelGenerator
CloneNotSupportedException
- if cloning is not supported.public boolean equals(Object obj)
equals
in class AbstractXYItemLabelGenerator
obj
- the other object (null
permitted).Copyright © 2001–2017 JFree.org. All rights reserved.