|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.labels.AbstractXYItemLabelGenerator
org.jfree.chart.labels.StandardXYItemLabelGenerator
public class StandardXYItemLabelGenerator
A standard item label generator for plots that use data from an
XYDataset
.
Field Summary | |
---|---|
static String |
DEFAULT_ITEM_LABEL_FORMAT
The default item label format. |
Constructor Summary | |
---|---|
StandardXYItemLabelGenerator()
Creates an item label generator using default number formatters. |
|
StandardXYItemLabelGenerator(String formatString)
Creates an item label generator using the specified number formatters. |
|
StandardXYItemLabelGenerator(String formatString,
DateFormat xFormat,
DateFormat yFormat)
Creates a label generator using the specified date formatters. |
|
StandardXYItemLabelGenerator(String formatString,
DateFormat xFormat,
NumberFormat yFormat)
Creates an item label generator using the specified formatters. |
|
StandardXYItemLabelGenerator(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). |
|
StandardXYItemLabelGenerator(String formatString,
NumberFormat xFormat,
NumberFormat yFormat)
Creates an item label generator using the specified number formatters. |
Method Summary | |
---|---|
Object |
clone()
Returns an independent copy of the generator. |
boolean |
equals(Object obj)
Tests this object for equality with an arbitrary object. |
String |
generateLabel(XYDataset dataset,
int series,
int item)
Generates the item label text for an item in a dataset. |
Methods inherited from class org.jfree.chart.labels.AbstractXYItemLabelGenerator |
---|
createItemArray, generateLabelString, getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_ITEM_LABEL_FORMAT
Constructor Detail |
---|
public StandardXYItemLabelGenerator()
public StandardXYItemLabelGenerator(String formatString)
formatString
- the item label format string (null
not
permitted).public StandardXYItemLabelGenerator(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 StandardXYItemLabelGenerator(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 StandardXYItemLabelGenerator(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 StandardXYItemLabelGenerator(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).Method Detail |
---|
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 Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.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).
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |