public class PieSectionEntity extends ChartEntity implements Serializable
| Constructor and Description |
|---|
PieSectionEntity(Shape area,
PieDataset dataset,
int pieIndex,
int sectionIndex,
Comparable sectionKey,
String toolTipText,
String urlText)
Creates a new pie section entity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(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.
|
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(Comparable key)
Sets the section key.
|
String |
toString()
Returns a string representing the entity.
|
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLTextpublic PieSectionEntity(Shape area, PieDataset dataset, int pieIndex, int sectionIndex, Comparable sectionKey, String toolTipText, 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.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 Comparable getSectionKey()
setSectionKey(Comparable)public void setSectionKey(Comparable key)
key - the section key.getSectionKey()public boolean equals(Object obj)
equals in class ChartEntityobj - the object (null permitted).public int hashCode()
hashCode in class ChartEntitypublic String toString()
toString in class ChartEntityCopyright © 2001–2017 JFree.org. All rights reserved.