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