public class LegendItemEntity extends ChartEntity implements Cloneable, Serializable
Constructor and Description |
---|
LegendItemEntity(Shape area)
Creates a legend item entity.
|
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
As of 1.0.6, use the
getSeriesKey() method. |
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)
Deprecated.
As of 1.0.6, use the
setSeriesKey(Comparable)
method. |
void |
setSeriesKey(Comparable key)
Sets the key for the series.
|
String |
toString()
Returns a string representing this object (useful for debugging
purposes).
|
getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, setArea, setToolTipText, setURLText
public LegendItemEntity(Shape area)
area
- the area.public Dataset getDataset()
setDataset(Dataset)
public void setDataset(Dataset dataset)
dataset
- the dataset.public Comparable getSeriesKey()
setSeriesKey(Comparable)
public void setSeriesKey(Comparable key)
key
- the key.getSeriesKey()
public int getSeriesIndex()
getSeriesKey()
method.setSeriesIndex(int)
public void setSeriesIndex(int index)
setSeriesKey(Comparable)
method.index
- the series index.getSeriesIndex()
public boolean equals(Object obj)
equals
in class ChartEntity
obj
- the object (null
permitted).public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class ChartEntity
CloneNotSupportedException
- if there is a problem cloning the
object.public String toString()
toString
in class ChartEntity
null
).Jas4pp 1.5 © Java Analysis Studio for Particle Physics