public class PieSectionEntity extends ChartEntity implements java.io.Serializable
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, setURLText
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 ChartEntity
obj
- the object (null
permitted).public int hashCode()
hashCode
in class ChartEntity
public java.lang.String toString()
toString
in class ChartEntity