public class AbstractXYItemLabelGenerator extends Object implements Cloneable, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractXYItemLabelGenerator()
Creates an item label generator using default number formatters.
|
protected |
AbstractXYItemLabelGenerator(String formatString,
DateFormat xFormat,
DateFormat yFormat)
Creates an item label generator using the specified number formatters.
|
protected |
AbstractXYItemLabelGenerator(String formatString,
DateFormat xFormat,
NumberFormat yFormat)
Creates an item label generator using the specified number formatters.
|
protected |
AbstractXYItemLabelGenerator(String formatString,
NumberFormat xFormat,
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).
|
protected |
AbstractXYItemLabelGenerator(String formatString,
NumberFormat xFormat,
NumberFormat yFormat)
Creates an item label 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 |
generateLabelString(XYDataset dataset,
int series,
int item)
Generates a label string for an item in the dataset.
|
String |
getFormatString()
Returns the format string (this controls the overall structure of the
label).
|
String |
getNullYString()
Returns the string representing a null value.
|
DateFormat |
getXDateFormat()
Returns the date formatter for the x-values.
|
NumberFormat |
getXFormat()
Returns the number formatter for the x-values.
|
DateFormat |
getYDateFormat()
Returns the date formatter for the y-values.
|
NumberFormat |
getYFormat()
Returns the number formatter for the y-values.
|
int |
hashCode()
Returns a hash code for this instance.
|
protected AbstractXYItemLabelGenerator()
protected AbstractXYItemLabelGenerator(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).protected AbstractXYItemLabelGenerator(String formatString, DateFormat xFormat, NumberFormat 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).protected AbstractXYItemLabelGenerator(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).protected AbstractXYItemLabelGenerator(String formatString, DateFormat 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 String getFormatString()
null).public NumberFormat getXFormat()
null).public DateFormat getXDateFormat()
null).public NumberFormat getYFormat()
null).public DateFormat getYDateFormat()
null).public String generateLabelString(XYDataset dataset, int series, int item)
dataset - the dataset (null not permitted).series - the series (zero-based index).item - the item (zero-based index).null).public String getNullYString()
protected Object[] createItemArray(XYDataset dataset, int series, int item)
MessageFormat class for creating labels.dataset - the dataset (null not permitted).series - the series (zero-based index).item - the item (zero-based index).String objects (never null).public boolean equals(Object obj)
public int hashCode()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - if cloning is not supported.Copyright © 2001–2014 JFree.org. All rights reserved.