org.sf.charttaglibs.charts
Class CategoryBasedChart

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.CategoryBasedChart
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:
AreaTag, BarTag, LineTag, StackedAreaTag, StackedBarTag, WaterfallTag

public abstract class CategoryBasedChart
extends BaseChartTag

Abstract class theat implement the common method of all category 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  java.lang.String domainAxisLabel
           
protected  java.lang.String plotOrientation
           
protected  java.lang.String rangeAxisLabel
           
protected  java.lang.String serie
           
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, messages, 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
CategoryBasedChart()
           
 
Method Summary
 java.lang.String getCategory()
           
 java.lang.String getCollection()
           
protected  org.jfree.data.category.DefaultCategoryDataset getDataSet()
          Getting the data set from the page
 java.lang.String getDomainAxisLabel()
           
 java.lang.String getPlotOrientation()
           
 java.lang.String getRangeAxisLabel()
           
 java.lang.String getSerie()
           
 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 setDomainAxisLabel(java.lang.String domainAxisLabel)
           
 void setPlotOrientation(java.lang.String plotOrientation)
           
 void setRangeAxisLabel(java.lang.String rangeAxisLabel)
           
 void setSerie(java.lang.String serie)
           
 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

collection

protected java.lang.String collection

category

protected java.lang.String category

serie

protected java.lang.String serie

value

protected java.lang.String value

domainAxisLabel

protected java.lang.String domainAxisLabel

rangeAxisLabel

protected java.lang.String rangeAxisLabel

plotOrientation

protected java.lang.String plotOrientation

threeD

protected boolean threeD
Constructor Detail

CategoryBasedChart

public CategoryBasedChart()
Method Detail

getDataSet

protected org.jfree.data.category.DefaultCategoryDataset getDataSet()
                                                             throws javax.servlet.jsp.JspException
Getting the data set from the page

Returns:
DefaultCategoryDataset from the bar chart
Throws:
javax.servlet.jsp.JspException - if the category, serie or value are not present in the bean

release

public void release()
Release any acquired resources.

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

getCategory

public java.lang.String getCategory()

setCategory

public void setCategory(java.lang.String category)

getCollection

public java.lang.String getCollection()

setCollection

public void setCollection(java.lang.String collection)

getDomainAxisLabel

public java.lang.String getDomainAxisLabel()

setDomainAxisLabel

public void setDomainAxisLabel(java.lang.String domainAxisLabel)

getPlotOrientation

public java.lang.String getPlotOrientation()

setPlotOrientation

public void setPlotOrientation(java.lang.String plotOrientation)

getRangeAxisLabel

public java.lang.String getRangeAxisLabel()

setRangeAxisLabel

public void setRangeAxisLabel(java.lang.String rangeAxisLabel)

getSerie

public java.lang.String getSerie()

setSerie

public void setSerie(java.lang.String serie)

getThreeD

public boolean getThreeD()

setThreeD

public void setThreeD(boolean threeD)

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)