Package org.jfree.chart.entity
Class LegendItemEntity
java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.LegendItemEntity
- All Implemented Interfaces:
 Serializable,Cloneable
public class LegendItemEntity extends ChartEntity implements Cloneable, Serializable
An entity that represents an item within a legend.
- See Also:
 - Serialized Form
 
- 
Constructor Summary
Constructors Constructor Description LegendItemEntity(Shape area)Creates a legend item entity. - 
Method Summary
Modifier and Type Method Description Objectclone()Returns a clone of the entity.booleanequals(Object obj)Tests this object for equality with an arbitrary object.intgetSeriesIndex()Returns the series index.voidsetSeriesIndex(int index)Sets the series index.Methods inherited from class org.jfree.chart.entity.ChartEntity
getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText 
- 
Constructor Details
- 
LegendItemEntity
Creates a legend item entity.- Parameters:
 area- the area.
 
 - 
 - 
Method Details
- 
getSeriesIndex
public int getSeriesIndex()Returns the series index.- Returns:
 - The series index.
 
 - 
setSeriesIndex
public void setSeriesIndex(int index)Sets the series index.- Parameters:
 index- the series index.
 - 
equals
Tests this object for equality with an arbitrary object.- Overrides:
 equalsin classChartEntity- Parameters:
 obj- the object (nullpermitted).- Returns:
 - A boolean.
 
 - 
clone
Returns a clone of the entity.- Overrides:
 clonein classChartEntity- Returns:
 - A clone.
 - Throws:
 CloneNotSupportedException- if there is a problem cloning the object.
 
 -