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.
|
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 |
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, setURLTextpublic 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 boolean equals(Object obj)
equals in class ChartEntityobj - the object (null permitted).public Object clone() throws CloneNotSupportedException
clone in interface PublicCloneableclone in class ChartEntityCloneNotSupportedException - if there is a problem cloning the
object.public String toString()
toString in class ChartEntitynull).Copyright © 2001–2017 JFree.org. All rights reserved.