org.jfree.chart.entity
Class LegendItemEntity
- Cloneable, PublicCloneable, Serializable
implements Cloneable, Serializable
An entity that represents an item within a legend.
clone , equals , getArea , getImageMapAreaTag , getShapeCoords , getShapeType , getToolTipText , getURLText , hashCode , setArea , setToolTipText , setURLText , toString |
LegendItemEntity
public LegendItemEntity(Shape area)
Creates a legend item entity.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the entity.
- clone in interface ChartEntity
equals
public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.
- equals in interface ChartEntity
obj
- the object (null
permitted).
getDataset
public Dataset getDataset()
Returns a reference to the dataset that this legend item is derived
from.
getSeriesKey
public Comparable getSeriesKey()
Returns the series key that identifies the legend item.
setDataset
public void setDataset(Dataset dataset)
Sets a reference to the dataset that this legend item is derived from.
setSeriesKey
public void setSeriesKey(Comparable key)
Sets the key for the series.
toString
public String toString()
Returns a string representing this object (useful for debugging
purposes).
- toString in interface ChartEntity