railo.runtime.tag
Class Graph

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

public final class Graph
extends TagImpl

Displays a graphical representation of data.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Graph()
          constructor for the tag class
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setBackgroundcolor(String backgroundcolor)
          set the value backgroundcolor Color of the chart background.
 void setBarspacing(double barspacing)
          set the value barspacing Spacing between bars in the chart, in pixels.
 void setBordercolor(String bordercolor)
          set the value bordercolor Border color.
 void setBorderwidth(String borderwidth)
          set the value borderwidth Border thickness, in pixels.
 void setColorlist(String colorlist)
          set the value colorlist Comma delimited list of colors to use for each data point.
 void setDepth(double depth)
          set the value depth Depth of 3D chart appearance, in pixels.
 void setFileformat(String fileformat)
          set the value fileformat File type to be used for the output displayed in the browser.
 void setFill(double fill)
          set the value fill Width of the graph line, in pixels.
 void setGraphheight(double graphheight)
          set the value graphheight Height of the graph, in pixels.
 void setGraphwidth(double graphwidth)
          set the value graphwidth Width of the graph, in pixels.
 void setGridlines(double gridlines)
          set the value gridlines An integer that specifies the number of grid lines to display on the chart between the top and bottom lines.
 void setItemcolumn(String itemcolumn)
          set the value itemcolumn Query column that contains the item label for the corresponding data point.
 void setItemlabelfont(String itemlabelfont)
          set the value itemlabelfont The font used for the item labels.
 void setItemlabelorientation(String itemlabelorientation)
          set the value itemlabelorientation Orientation of item labels.
 void setItemlabelsize(double itemlabelsize)
          set the value itemlabelsize The size of the item labels, in points.
 void setLegendfont(String legendfont)
          set the value legendfont The font used to display the legend.
 void setLinecolor(String linecolor)
          set the value linecolor The color used to draw the data line.
 void setLinewidth(double linewidth)
          set the value linewidth Specifies whether to fill the area below the line with the line color to create an area graph.
 void setQuery(String query)
          set the value query Name of the query containing the data to graph.
 void setScalefrom(double scalefrom)
          set the value scalefrom The minimum value of the graph value axis (the vertical axis for Bar charts, the horizontal axis for HorizontalBar charts).
 void setScaleto(double scaleto)
          set the value scaleto The maximum value of the graph value axis.
 void setShowitemlabel(boolean showitemlabel)
          set the value showitemlabel Specifies whether to put item labels on the horizontal axis of bar charts and the vertical axis of HorizontalBar charts.
 void setShowlegend(String showlegend)
          set the value showlegend The placement of the legend that identifies colors with the data labels.
 void setShowvaluelabel(boolean showvaluelabel)
          set the value showvaluelabel Specifies whether values are displayed for the data points.
 void setTitle(String title)
          set the value title Title to display centered above the chart, or below the chart if the legend is above the chart.
 void setTitlefont(String titlefont)
          set the value titlefont The font used to display the title.
 void setType(String type)
          set the value type Type of chart to display.
 void setUrl(String url)
          set the value url A URL to load when the user clicks any data point on the chart.
 void setUrlcolumn(String urlcolumn)
          set the value urlcolumn Query column containing URL information to load when the user clicks the corresponding data point.
 void setValuecolumn(String valuecolumn)
          set the value valuecolumn Query column that contains the data values.
 void setValuelabelfont(String valuelabelfont)
          set the value valuelabelfont The font used to display data values.
 void setValuelabelsize(double valuelabelsize)
          set the value valuelabelsize The size the value text, in points.
 void setValuelocation(String valuelocation)
          set the value valuelocation Where value labels are placed.
 
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

Graph

public Graph()
      throws ExpressionException
constructor for the tag class

Throws:
ExpressionException
Method Detail

setItemlabelfont

public void setItemlabelfont(String itemlabelfont)
set the value itemlabelfont The font used for the item labels.

Parameters:
itemlabelfont - value to set

setShowlegend

public void setShowlegend(String showlegend)
set the value showlegend The placement of the legend that identifies colors with the data labels.

Parameters:
showlegend - value to set

setTitle

public void setTitle(String title)
set the value title Title to display centered above the chart, or below the chart if the legend is above the chart.

Parameters:
title - value to set

setValuelabelsize

public void setValuelabelsize(double valuelabelsize)
set the value valuelabelsize The size the value text, in points.

Parameters:
valuelabelsize - value to set

setItemlabelsize

public void setItemlabelsize(double itemlabelsize)
set the value itemlabelsize The size of the item labels, in points.

Parameters:
itemlabelsize - value to set

setFill

public void setFill(double fill)
set the value fill Width of the graph line, in pixels.

Parameters:
fill - value to set

setBordercolor

public void setBordercolor(String bordercolor)
set the value bordercolor Border color.

Parameters:
bordercolor - value to set

setQuery

public void setQuery(String query)
set the value query Name of the query containing the data to graph. Required if you do not use cfgraphdata tags in the cfgraph tag body to specify the data values.

Parameters:
query - value to set

setValuelabelfont

public void setValuelabelfont(String valuelabelfont)
set the value valuelabelfont The font used to display data values.

Parameters:
valuelabelfont - value to set

setTitlefont

public void setTitlefont(String titlefont)
set the value titlefont The font used to display the title.

Parameters:
titlefont - value to set

setGridlines

public void setGridlines(double gridlines)
set the value gridlines An integer that specifies the number of grid lines to display on the chart between the top and bottom lines.

Parameters:
gridlines - value to set

setUrl

public void setUrl(String url)
set the value url A URL to load when the user clicks any data point on the chart.

Parameters:
url - value to set

setValuecolumn

public void setValuecolumn(String valuecolumn)
set the value valuecolumn Query column that contains the data values. Required if you do not use cfgraphdata tags in the cfgraph tag body to specify the data values.

Parameters:
valuecolumn - value to set

setBarspacing

public void setBarspacing(double barspacing)
set the value barspacing Spacing between bars in the chart, in pixels.

Parameters:
barspacing - value to set

setLinewidth

public void setLinewidth(double linewidth)
set the value linewidth Specifies whether to fill the area below the line with the line color to create an area graph.

Parameters:
linewidth - value to set

setBorderwidth

public void setBorderwidth(String borderwidth)
set the value borderwidth Border thickness, in pixels.

Parameters:
borderwidth - value to set

setShowvaluelabel

public void setShowvaluelabel(boolean showvaluelabel)
set the value showvaluelabel Specifies whether values are displayed for the data points.

Parameters:
showvaluelabel - value to set

setScalefrom

public void setScalefrom(double scalefrom)
set the value scalefrom The minimum value of the graph value axis (the vertical axis for Bar charts, the horizontal axis for HorizontalBar charts).

Parameters:
scalefrom - value to set

setShowitemlabel

public void setShowitemlabel(boolean showitemlabel)
set the value showitemlabel Specifies whether to put item labels on the horizontal axis of bar charts and the vertical axis of HorizontalBar charts.

Parameters:
showitemlabel - value to set

setType

public void setType(String type)
set the value type Type of chart to display.

Parameters:
type - value to set

setDepth

public void setDepth(double depth)
set the value depth Depth of 3D chart appearance, in pixels.

Parameters:
depth - value to set

setUrlcolumn

public void setUrlcolumn(String urlcolumn)
set the value urlcolumn Query column containing URL information to load when the user clicks the corresponding data point.

Parameters:
urlcolumn - value to set

setLegendfont

public void setLegendfont(String legendfont)
set the value legendfont The font used to display the legend.

Parameters:
legendfont - value to set

setBackgroundcolor

public void setBackgroundcolor(String backgroundcolor)
set the value backgroundcolor Color of the chart background.

Parameters:
backgroundcolor - value to set

setColorlist

public void setColorlist(String colorlist)
set the value colorlist Comma delimited list of colors to use for each data point.

Parameters:
colorlist - value to set

setScaleto

public void setScaleto(double scaleto)
set the value scaleto The maximum value of the graph value axis.

Parameters:
scaleto - value to set

setGraphwidth

public void setGraphwidth(double graphwidth)
set the value graphwidth Width of the graph, in pixels. Default is 320.

Parameters:
graphwidth - value to set

setValuelocation

public void setValuelocation(String valuelocation)
set the value valuelocation Where value labels are placed.

Parameters:
valuelocation - value to set

setItemcolumn

public void setItemcolumn(String itemcolumn)
set the value itemcolumn Query column that contains the item label for the corresponding data point. The item labels appear in the chart legend.

Parameters:
itemcolumn - value to set

setItemlabelorientation

public void setItemlabelorientation(String itemlabelorientation)
set the value itemlabelorientation Orientation of item labels.

Parameters:
itemlabelorientation - value to set

setLinecolor

public void setLinecolor(String linecolor)
set the value linecolor The color used to draw the data line.

Parameters:
linecolor - value to set

setGraphheight

public void setGraphheight(double graphheight)
set the value graphheight Height of the graph, in pixels. Default is 240.

Parameters:
graphheight - value to set

setFileformat

public void setFileformat(String fileformat)
set the value fileformat File type to be used for the output displayed in the browser.

Parameters:
fileformat - 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