public class IntervalXYItemLabelGenerator extends AbstractXYItemLabelGenerator implements XYItemLabelGenerator, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
IntervalXYDataset
interface.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ITEM_LABEL_FORMAT
The default item label format.
|
Constructor and Description |
---|
IntervalXYItemLabelGenerator()
Creates an item label generator using default number formatters.
|
IntervalXYItemLabelGenerator(java.lang.String formatString,
java.text.DateFormat xFormat,
java.text.DateFormat yFormat)
Creates a label generator using the specified date formatters.
|
IntervalXYItemLabelGenerator(java.lang.String formatString,
java.text.DateFormat xFormat,
java.text.NumberFormat yFormat)
Creates an item label generator using the specified formatters.
|
IntervalXYItemLabelGenerator(java.lang.String formatString,
java.text.NumberFormat xFormat,
java.text.DateFormat yFormat)
Creates an item label generator using the specified formatters (a
number formatter for the x-values and a date formatter for the
y-values).
|
IntervalXYItemLabelGenerator(java.lang.String formatString,
java.text.NumberFormat xFormat,
java.text.NumberFormat yFormat)
Creates an item label generator using the specified number formatters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns an independent copy of the generator.
|
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 this object for equality with an arbitrary object.
|
java.lang.String |
generateLabel(XYDataset dataset,
int series,
int item)
Generates the item label text for an item in a dataset.
|
generateLabelString, getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat, hashCode
public static final java.lang.String DEFAULT_ITEM_LABEL_FORMAT
public IntervalXYItemLabelGenerator()
public IntervalXYItemLabelGenerator(java.lang.String formatString, java.text.NumberFormat xFormat, java.text.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 IntervalXYItemLabelGenerator(java.lang.String formatString, java.text.DateFormat xFormat, java.text.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 IntervalXYItemLabelGenerator(java.lang.String formatString, java.text.NumberFormat xFormat, java.text.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 IntervalXYItemLabelGenerator(java.lang.String formatString, java.text.DateFormat xFormat, java.text.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 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).String
objects (never null
).public java.lang.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 java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractXYItemLabelGenerator
java.lang.CloneNotSupportedException
- if cloning is not supported.public boolean equals(java.lang.Object obj)
equals
in class AbstractXYItemLabelGenerator
obj
- the other object (null
permitted).