|
||||||||||
| 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
A chart entity that represents one section within a pie plot.
| Constructor Summary | |
PieSectionEntity(int pieIndex,
int sectionIndex,
java.lang.Comparable sectionKey,
java.awt.Shape area,
java.lang.String toolTipText)
Deprecated. Use alternative constructor. |
|
PieSectionEntity(int pieIndex,
int sectionIndex,
java.lang.Comparable sectionKey,
java.awt.Shape area,
java.lang.String toolTipText,
java.lang.String urlText)
Deprecated. Use alternative constructor. |
|
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 | |
PieDataset |
getDataset()
Returns the datset this entity refers to. |
int |
getPieIndex()
Returns the pie index. |
int |
getSectionIndex()
Returns the section index. |
java.lang.Comparable |
getSectionKey()
Returns the section key. |
void |
setDataset(PieDataset dataset)
Sets the datset 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, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PieSectionEntity(int pieIndex,
int sectionIndex,
java.lang.Comparable sectionKey,
java.awt.Shape area,
java.lang.String toolTipText)
pieIndex - the pie index (zero-based).sectionIndex - the section index (zero-based).sectionKey - the section key.area - the area.toolTipText - the tool tip text.
public PieSectionEntity(int pieIndex,
int sectionIndex,
java.lang.Comparable sectionKey,
java.awt.Shape area,
java.lang.String toolTipText,
java.lang.String urlText)
pieIndex - the pie index (zero-based).sectionIndex - the section index (zero-based).sectionKey - the section key.area - the area.toolTipText - the tool tip text.urlText - the URL text for HTML image maps.
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()
public void setDataset(PieDataset dataset)
dataset - the dataset.public int getPieIndex()
For a regular pie chart, the section index is 0. For a pie chart containing multiple pie plots, the pie index is the row or column index from which the pie data is extracted.
public void setPieIndex(int index)
index - the new index value.public int getSectionIndex()
public void setSectionIndex(int index)
index - the section index.public java.lang.Comparable getSectionKey()
public void setSectionKey(java.lang.Comparable key)
key - the section key.public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||