com.jrefinery.chart.entity
Class PieSectionEntity

java.lang.Object
  |
  +--com.jrefinery.chart.entity.ChartEntity
        |
        +--com.jrefinery.chart.entity.PieSectionEntity

public class PieSectionEntity
extends ChartEntity

A chart entity that represents one section within a pie plot.

Author:
DG

Constructor Summary
PieSectionEntity(java.awt.Shape area, java.lang.String toolTipText, java.lang.Object category, int categoryIndex)
          Creates a new pie section entity.
PieSectionEntity(java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText, java.lang.Object category, int categoryIndex)
          Creates a new pie section entity.
 
Method Summary
 java.lang.Object getCategory()
          Returns the category.
 int getCategoryIndex()
          Returns the category index.
 void setCategory(java.lang.Object category)
          Sets the category.
 void setCategoryIndex(int index)
          Sets the category index.
 java.lang.String toString()
          Returns a string representing the entity.
 
Methods inherited from class com.jrefinery.chart.entity.ChartEntity
getArea, getImageMapAreaTag, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PieSectionEntity

public PieSectionEntity(java.awt.Shape area,
                        java.lang.String toolTipText,
                        java.lang.Object category,
                        int categoryIndex)
Creates a new pie section entity.
Parameters:
area - the area.
toolTipText - the tool tip text.
category - the category.
categoryIndex - the category index.

PieSectionEntity

public PieSectionEntity(java.awt.Shape area,
                        java.lang.String toolTipText,
                        java.lang.String urlText,
                        java.lang.Object category,
                        int categoryIndex)
Creates a new pie section entity.
Parameters:
area - the area.
toolTipText - the tool tip text.
urlText - the URL text for HTML image maps.
category - the category.
categoryIndex - the category index.
Method Detail

getCategory

public java.lang.Object getCategory()
Returns the category.
Returns:
the category.

setCategory

public void setCategory(java.lang.Object category)
Sets the category.
Parameters:
category - the category.

getCategoryIndex

public int getCategoryIndex()
Returns the category index.
Returns:
the category index.

setCategoryIndex

public void setCategoryIndex(int index)
Sets the category index.
Parameters:
index - the category index.

toString

public java.lang.String toString()
Returns a string representing the entity.
Overrides:
toString in class java.lang.Object
Returns:
a string representing the entity.