org.jfree.chart.labels
Class StandardXYSeriesLabelGenerator
java.lang.Object
org.jfree.chart.labels.StandardXYSeriesLabelGenerator
- Cloneable, PublicCloneable, Serializable, XYSeriesLabelGenerator
A standard series label generator for plots that use data from
an
XYDataset
.
This class implements
PublicCloneable
by mistake but we retain
this for the sake of backward compatibility.
Object | clone() - Returns an independent copy of the generator.
|
protected Object[] | createItemArray(XYDataset dataset, int series) - 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 | generateLabel(XYDataset dataset, int series) - Generates a label for the specified series.
|
StandardXYSeriesLabelGenerator
public StandardXYSeriesLabelGenerator(String format)
Creates a new series label generator.
format
- the format pattern (null
not permitted).
clone
public Object clone()
throws CloneNotSupportedException
Returns an independent copy of the generator. This is unnecessary,
because instances are immutable anyway, but we retain this
behaviour for backwards compatibility.
createItemArray
protected Object[] createItemArray(XYDataset dataset,
int series)
Creates the array of items that can be passed to the
MessageFormat
class for creating labels.
dataset
- the dataset (null
not permitted).series
- the series (zero-based index).
equals
public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.
obj
- the other object (null
permitted).