org.jfree.chart.entity

Class LegendItemEntity

Implemented Interfaces:
Cloneable, PublicCloneable, Serializable

public class LegendItemEntity
extends ChartEntity
implements Cloneable, Serializable

An entity that represents an item within a legend.

Constructor Summary

LegendItemEntity(Shape area)
Creates a legend item entity.

Method Summary

Object
clone()
Returns a clone of the entity.
boolean
equals(Object obj)
Tests this object for equality with an arbitrary object.
int
getSeriesIndex()
Returns the series index.
void
setSeriesIndex(int index)
Sets the series index.

Methods inherited from class org.jfree.chart.entity.ChartEntity

clone, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText, toString

Constructor Details

LegendItemEntity

public LegendItemEntity(Shape area)
Creates a legend item entity.
Parameters:
area - the area.

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Returns a clone of the entity.
Overrides:
clone in interface ChartEntity
Returns:
A clone.

equals

public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.
Overrides:
equals in interface ChartEntity
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

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.