org.jfree.chart.entity
public class LegendItemEntity extends ChartEntity implements Cloneable, Serializable
Constructor Summary | |
---|---|
LegendItemEntity(Shape area)
Creates a legend item entity.
|
Method Summary | |
---|---|
Object | clone()
Returns a clone of the entity.
|
boolean | equals(Object obj)
Tests this object for equality with an arbitrary object.
|
Dataset | getDataset()
Returns a reference to the dataset that this legend item is derived
from.
|
int | getSeriesIndex()
Returns the series index.
|
Comparable | getSeriesKey()
Returns the series key that identifies the legend item.
|
void | setDataset(Dataset dataset)
Sets a reference to the dataset that this legend item is derived from.
|
void | setSeriesIndex(int index)
Sets the series index.
|
void | setSeriesKey(Comparable key)
Sets the key for the series.
|
String | toString()
Returns a string representing this object (useful for debugging
purposes).
|
Parameters: area the area.
Returns: A clone.
Throws: CloneNotSupportedException if there is a problem cloning the object.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The dataset.
Since: 1.0.6
See Also: setDataset
Deprecated: As of 1.0.6, use the getSeriesKey method.
Returns the series index.Returns: The series index.
Returns: The series key.
Since: 1.0.6
See Also: setSeriesKey
Parameters: dataset the dataset.
Since: 1.0.6
Deprecated: As of 1.0.6, use the setSeriesKey method.
Sets the series index.Parameters: index the series index.
Returns: A string (never null
).