|
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.PieSectionEntity
public class PieSectionEntity
A chart entity that represents one section within a pie plot.
Constructor Summary | |
---|---|
PieSectionEntity(java.awt.Shape area,
PieDataset dataset,
int pieIndex,
int sectionIndex,
java.lang.Comparable sectionKey,
java.lang.String toolTipText,
java.lang.String urlText)
Creates a new pie section entity. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this entity for equality with an arbitrary object. |
PieDataset |
getDataset()
Returns the dataset this entity refers to. |
int |
getPieIndex()
Returns the pie index. |
int |
getSectionIndex()
Returns the section index. |
java.lang.Comparable |
getSectionKey()
Returns the section key. |
int |
hashCode()
Returns a hash code for this instance. |
void |
setDataset(PieDataset dataset)
Sets the dataset this entity refers to. |
void |
setPieIndex(int index)
Sets the pie index. |
void |
setSectionIndex(int index)
Sets the section index. |
void |
setSectionKey(java.lang.Comparable key)
Sets the section key. |
java.lang.String |
toString()
Returns a string representing the entity. |
Methods inherited from class org.jfree.chart.entity.ChartEntity |
---|
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PieSectionEntity(java.awt.Shape area, PieDataset dataset, int pieIndex, int sectionIndex, java.lang.Comparable sectionKey, java.lang.String toolTipText, java.lang.String urlText)
area
- the area.dataset
- the pie dataset.pieIndex
- the pie index (zero-based).sectionIndex
- the section index (zero-based).sectionKey
- the section key.toolTipText
- the tool tip text.urlText
- the URL text for HTML image maps.Method Detail |
---|
public PieDataset getDataset()
setDataset(PieDataset)
public void setDataset(PieDataset dataset)
dataset
- the dataset.getDataset()
public int getPieIndex()
setPieIndex(int)
public void setPieIndex(int index)
index
- the new index value.getPieIndex()
public int getSectionIndex()
setSectionIndex(int)
public void setSectionIndex(int index)
index
- the section index.getSectionIndex()
public java.lang.Comparable getSectionKey()
setSectionKey(Comparable)
public void setSectionKey(java.lang.Comparable key)
key
- the section key.getSectionKey()
public boolean equals(java.lang.Object obj)
equals
in class ChartEntity
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class ChartEntity
public java.lang.String toString()
toString
in class ChartEntity
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |