org.jfree.chart.entity
Class PieSectionEntity
- Cloneable, PublicCloneable, Serializable
A chart entity that represents one section within a pie plot.
PieSectionEntity(Shape area, PieDataset dataset, int pieIndex, int sectionIndex, Comparable sectionKey, String toolTipText, String urlText) - Creates a new pie section entity.
|
clone , equals , getArea , getImageMapAreaTag , getShapeCoords , getShapeType , getToolTipText , getURLText , setArea , setToolTipText , setURLText , toString |
PieSectionEntity
public PieSectionEntity(Shape area,
PieDataset dataset,
int pieIndex,
int sectionIndex,
Comparable sectionKey,
String toolTipText,
String urlText)
Creates a new pie section entity.
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.
getPieIndex
public int getPieIndex()
Returns the pie index. 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.
getSectionKey
public Comparable getSectionKey()
Returns the section key.
setPieIndex
public void setPieIndex(int index)
Sets the pie index.
index
- the new index value.
setSectionIndex
public void setSectionIndex(int index)
Sets the section index.
index
- the section index.
setSectionKey
public void setSectionKey(Comparable key)
Sets the section key.
toString
public String toString()
Returns a string representing the entity.
- toString in interface ChartEntity
- A string representing the entity.