railo.runtime.tag
Class GraphData

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.GraphData
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class GraphData
extends TagImpl

Specifies a data point to be displayed by a cfgraph tag.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
GraphData()
          constructor for the tag class
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setColor(String color)
          set the value color The color to use when graphing the data point.
 void setItem(String item)
          set the value item The item label for the data point.
 void setUrl(String url)
          set the value url A URL to load when the user clicks the data point.
 void setValue(String value)
          set the value value Value to be represented by the data point.
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphData

public GraphData()
          throws ExpressionException
constructor for the tag class

Throws:
ExpressionException
Method Detail

setItem

public void setItem(String item)
set the value item The item label for the data point. The item labels appear on the horizontal axis of Line and Bar charts, the vertical axis of Horizontal Bar charts, and in the legend of Pie charts.

Parameters:
item - value to set

setColor

public void setColor(String color)
set the value color The color to use when graphing the data point. The default is to use the values from the cfgraph tag colorlist attribute or the built-in default list of colors. Line graphs ignore this attribute.

Parameters:
color - value to set

setValue

public void setValue(String value)
set the value value Value to be represented by the data point.

Parameters:
value - value to set

setUrl

public void setUrl(String url)
set the value url A URL to load when the user clicks the data point. This attribute works with Pie, Bar, and HorizontalBar charts. This attribute has an effect only if the graph is in Flash file format.

Parameters:
url - value to set

doStartTag

public int doStartTag()
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
See Also:
Tag.doEndTag()

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl
See Also:
Tag.release()


Copyright © 2012 Railo