public class BubbleXYItemLabelGenerator extends AbstractXYItemLabelGenerator implements XYItemLabelGenerator, org.jfree.util.PublicCloneable, Serializable
XYBubbleRenderer
class, or any other class that uses an XYZDataset
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FORMAT_STRING
The default item label format.
|
Constructor and Description |
---|
BubbleXYItemLabelGenerator()
Creates a new tool tip generator using default number formatters for the
x, y and z-values.
|
BubbleXYItemLabelGenerator(String formatString,
DateFormat xFormat,
DateFormat yFormat,
DateFormat zFormat)
Constructs a new item label generator using the specified date
formatters.
|
BubbleXYItemLabelGenerator(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 |
generateLabel(XYDataset dataset,
int series,
int item)
Generates an item label for a particular item within a series.
|
String |
generateLabelString(XYDataset dataset,
int series,
int item)
Generates a label string for an item in the dataset.
|
DateFormat |
getZDateFormat()
Returns the date formatter for the z-values.
|
NumberFormat |
getZFormat()
Returns the number formatter for the z-values.
|
int |
hashCode()
Returns a hash code for this instance.
|
clone, getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat
public static final String DEFAULT_FORMAT_STRING
public BubbleXYItemLabelGenerator()
public BubbleXYItemLabelGenerator(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 BubbleXYItemLabelGenerator(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 generateLabel(XYDataset dataset, int series, int item)
generateLabel
in interface XYItemLabelGenerator
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 AbstractXYItemLabelGenerator
obj
- the other object (null
permitted).public int hashCode()
hashCode
in class AbstractXYItemLabelGenerator
Jas4pp 1.5 © Java Analysis Studio for Particle Physics