org.sf.charttaglibs.charts
Class PieBasedChart

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.sf.charttaglibs.BaseHandlerTag
              extended byorg.sf.charttaglibs.BaseChartTag
                  extended byorg.sf.charttaglibs.charts.PieBasedChart
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
PieTag, RingTag

public abstract class PieBasedChart
extends BaseChartTag

Abstract class theat implement the common method of all pie based chart

Author:
mmohamed |at| dcc |dot| uchile |dot| cl
See Also:
Serialized Form

Field Summary
protected  java.lang.String category
           
protected  java.lang.String collection
           
protected  float explodePercent
           
protected  int explodePosition
           
private static Message messages
           
protected  java.lang.String rotation
           
protected  boolean threeD
           
protected  java.lang.String value
           
 
Fields inherited from class org.sf.charttaglibs.BaseChartTag
antiAlias, bgAlpha, bgColor, chart, chartborder, chartHight, chartWidth, createLegend, createTooltip, createUrl, fgAlpha, src, subtitle, subtitlePosition, title, titlePosition, usemap
 
Fields inherited from class org.sf.charttaglibs.BaseHandlerTag
align, border, height, hspace, ismap, name, vspace, width
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
PieBasedChart()
           
 
Method Summary
 java.lang.String getCategory()
           
 java.lang.String getCollection()
           
protected  org.jfree.data.general.DefaultPieDataset getDataSet()
          Get the dataset to be used in the initChart method to build the Chart.
 float getExplodePercent()
           
 int getExplodePosition()
           
 java.lang.String getRotation()
           
 boolean getThreeD()
           
 java.lang.String getValue()
           
 void release()
          Release any acquired resources.
 void setCategory(java.lang.String category)
           
 void setCollection(java.lang.String collection)
           
 void setExplodePercent(float explodedPercent)
           
 void setExplodePosition(int explodedPosition)
           
protected  void setPlotAttribute()
          Set the plot attribute for the pie chart if existe any
 void setRotation(java.lang.String rotatioon)
           
 void setThreeD(boolean threeD)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class org.sf.charttaglibs.BaseChartTag
doEndTag, doStartTag, getAntiAlias, getBgAlpha, getBgColor, getChart, getChartborder, getChartHight, getChartWidth, getCreateLegend, getCreateUrl, getFgAlpha, getFileName, getIterator, getSrc, getSubtitle, getSubtitlePosition, getTitle, getTitlePosition, getUsemap, initChart, isCreateTooltip, setAntiAlias, setBgAlpha, setBgColor, setChart, setChartborder, setChartHight, setChartWidth, setCreateLegend, setCreateTooltip, setCreateUrl, setFgAlpha, setSrc, setSubtitle, setSubtitlePosition, setTitle, setTitlePosition, setUsemap
 
Methods inherited from class org.sf.charttaglibs.BaseHandlerTag
getAlign, getAlt, getBorder, getElementClose, getHeight, getHspace, getIsmap, getName, getOnabort, getOnblur, getOnclick, getOnerror, getOnfocus, getOnload, getVspace, getWidth, isXhtml, lookupProperty, prepareAttribute, prepareHtmlElements, prepareJavaScriptsEvent, prepareOtherAttributes, setAlign, setAlt, setBorder, setHeight, setHspace, setIsmap, setName, setOnabort, setOnblur, setOnclick, setOnerror, setOnfocus, setOnload, setVspace, setWidth
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

messages

private static final Message messages

collection

protected java.lang.String collection

category

protected java.lang.String category

value

protected java.lang.String value

explodePosition

protected int explodePosition

explodePercent

protected float explodePercent

threeD

protected boolean threeD

rotation

protected java.lang.String rotation
Constructor Detail

PieBasedChart

public PieBasedChart()
Method Detail

getDataSet

protected org.jfree.data.general.DefaultPieDataset getDataSet()
                                                       throws javax.servlet.jsp.JspException
Get the dataset to be used in the initChart method to build the Chart.

Returns:
DefaultPieDataset dataset
Throws:
javax.servlet.jsp.JspException - - when whether an IllegalAccessException, an InvocationTargetException or a NoSuchMethodException is caught.

setPlotAttribute

protected void setPlotAttribute()
                         throws javax.servlet.jsp.JspException
Set the plot attribute for the pie chart if existe any

Throws:
javax.servlet.jsp.JspException

release

public void release()
Release any acquired resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseChartTag

getCollection

public java.lang.String getCollection()

setCollection

public void setCollection(java.lang.String collection)

getCategory

public java.lang.String getCategory()

setCategory

public void setCategory(java.lang.String category)

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

getThreeD

public boolean getThreeD()

setThreeD

public void setThreeD(boolean threeD)

getExplodePercent

public float getExplodePercent()

setExplodePercent

public void setExplodePercent(float explodedPercent)

getExplodePosition

public int getExplodePosition()

setExplodePosition

public void setExplodePosition(int explodedPosition)

getRotation

public java.lang.String getRotation()

setRotation

public void setRotation(java.lang.String rotatioon)