org.jfree.chart.entity

Class LegendItemEntity

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
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.

Constructor Detail

LegendItemEntity

public LegendItemEntity(Shape area)
Creates a legend item entity.

Parameters: area the area.

Method Detail

clone

public Object clone()
Returns a clone of the entity.

Returns: A clone.

Throws: CloneNotSupportedException if there is a problem cloning the object.

equals

public boolean equals(Object obj)
Tests this object for equality with an arbitrary object.

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.