| java.lang.Object org.jfree.chart.entity.ChartEntity org.jfree.chart.entity.PieSectionEntity
PieSectionEntity | public class PieSectionEntity extends ChartEntity implements Serializable(Code) | | A chart entity that represents one section within a pie plot.
|
PieSectionEntity | public PieSectionEntity(Shape area, PieDataset dataset, int pieIndex, int sectionIndex, Comparable sectionKey, String toolTipText, String urlText)(Code) | | Creates a new pie section entity.
Parameters: area - the area. Parameters: dataset - the pie dataset. Parameters: pieIndex - the pie index (zero-based). Parameters: sectionIndex - the section index (zero-based). Parameters: sectionKey - the section key. Parameters: toolTipText - the tool tip text. Parameters: urlText - the URL text for HTML image maps. |
getDataset | public PieDataset getDataset()(Code) | | Returns the dataset this entity refers to.
The dataset. |
getPieIndex | public int getPieIndex()(Code) | | 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.
The pie index. |
getSectionIndex | public int getSectionIndex()(Code) | | Returns the section index.
The section index. |
getSectionKey | public Comparable getSectionKey()(Code) | | Returns the section key.
The section key. |
setDataset | public void setDataset(PieDataset dataset)(Code) | | Sets the dataset this entity refers to.
Parameters: dataset - the dataset. |
setPieIndex | public void setPieIndex(int index)(Code) | | Sets the pie index.
Parameters: index - the new index value. |
setSectionIndex | public void setSectionIndex(int index)(Code) | | Sets the section index.
Parameters: index - the section index. |
setSectionKey | public void setSectionKey(Comparable key)(Code) | | Sets the section key.
Parameters: key - the section key. |
toString | public String toString()(Code) | | Returns a string representing the entity.
A string representing the entity. |
|
|