|
Header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.LegendItemEntity
public class LegendItemEntity
An entity that represents an item within a legend.
| Constructor Summary | |
|---|---|
LegendItemEntity(java.awt.Shape area)
Creates a legend item entity. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of the entity. |
boolean |
equals(java.lang.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. |
int |
getSeriesIndex()
Deprecated. As of 1.0.6, use the getSeriesKey() method. |
java.lang.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 |
setSeriesIndex(int index)
Deprecated. As of 1.0.6, use the setSeriesKey(Comparable)
method. |
void |
setSeriesKey(java.lang.Comparable key)
Sets the key for the series. |
java.lang.String |
toString()
Returns a string representing this object (useful for debugging purposes). |
| Methods inherited from class org.jfree.chart.entity.ChartEntity |
|---|
getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, setArea, setToolTipText, setURLText |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LegendItemEntity(java.awt.Shape area)
area - the area.| Method Detail |
|---|
public Dataset getDataset()
setDataset(Dataset)public void setDataset(Dataset dataset)
dataset - the dataset.public java.lang.Comparable getSeriesKey()
setSeriesKey(Comparable)public void setSeriesKey(java.lang.Comparable key)
key - the key.getSeriesKey()public int getSeriesIndex()
getSeriesKey() method.
setSeriesIndex(int)public void setSeriesIndex(int index)
setSeriesKey(Comparable)
method.
index - the series index.getSeriesIndex()public boolean equals(java.lang.Object obj)
equals in class ChartEntityobj - the object (null permitted).
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class ChartEntityjava.lang.CloneNotSupportedException - if there is a problem cloning the
object.public java.lang.String toString()
toString in class ChartEntitynull).
|
Footer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||