public class StandardXYZToolTipGenerator extends StandardXYToolTipGenerator implements XYZToolTipGenerator, Serializable
XYZDataset
data. Each
value can be formatted as a number or as a date.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TOOL_TIP_FORMAT
The default tooltip format.
|
Constructor and Description |
---|
StandardXYZToolTipGenerator()
Creates a new tool tip generator using default number formatters for the
x, y and z-values.
|
StandardXYZToolTipGenerator(String formatString,
DateFormat xFormat,
DateFormat yFormat,
DateFormat zFormat)
Constructs a new tool tip generator using the specified date formatters.
|
StandardXYZToolTipGenerator(String formatString,
NumberFormat xFormat,
NumberFormat yFormat,
NumberFormat zFormat)
Constructs a new tool tip generator using the specified number
formatters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests this object for equality with an arbitrary object.
|
String |
generateLabelString(XYDataset dataset,
int series,
int item)
Generates a label string for an item in the dataset.
|
String |
generateToolTip(XYZDataset dataset,
int series,
int item)
Generates a tool tip text item for a particular item within a series.
|
DateFormat |
getZDateFormat()
Returns the date formatter for the z-values.
|
NumberFormat |
getZFormat()
Returns the number formatter for the z-values.
|
clone, generateToolTip, getTimeSeriesInstance
getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat, hashCode
getClass, notify, notifyAll, toString, wait, wait, wait
generateToolTip
public static final String DEFAULT_TOOL_TIP_FORMAT
public StandardXYZToolTipGenerator()
public StandardXYZToolTipGenerator(String formatString, NumberFormat xFormat, NumberFormat yFormat, NumberFormat zFormat)
formatString
- the format string.xFormat
- the format object for the x values (null
not permitted).yFormat
- the format object for the y values (null
not permitted).zFormat
- the format object for the z values (null
not permitted).public StandardXYZToolTipGenerator(String formatString, DateFormat xFormat, DateFormat yFormat, DateFormat zFormat)
formatString
- the format string.xFormat
- the format object for the x values (null
not permitted).yFormat
- the format object for the y values (null
not permitted).zFormat
- the format object for the z values (null
not permitted).public NumberFormat getZFormat()
null
).public DateFormat getZDateFormat()
null
).public String generateToolTip(XYZDataset dataset, int series, int item)
generateToolTip
in interface XYZToolTipGenerator
dataset
- the dataset (null
not permitted).series
- the series index (zero-based).item
- the item index (zero-based).null
).public String generateLabelString(XYDataset dataset, int series, int item)
generateLabelString
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(Object obj)
equals
in class StandardXYToolTipGenerator
obj
- the other object (null
permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics