public class PieSectionEntity extends ChartEntity implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private PieDataset |
dataset
The dataset.
|
private int |
pieIndex
The pie index.
|
private int |
sectionIndex
The section index.
|
private java.lang.Comparable |
sectionKey
The section key.
|
private static long |
serialVersionUID
For serialization.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLTextprivate static final long serialVersionUID
private PieDataset dataset
private int pieIndex
private int sectionIndex
private java.lang.Comparable sectionKey
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.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 ChartEntityobj - the object (null permitted).public int hashCode()
hashCode in class ChartEntitypublic java.lang.String toString()
toString in class ChartEntity