er.googlechart.components
Class GCAbstractChart
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
er.googlechart.components.GCAbstractChart
- Direct Known Subclasses:
- GCBarChart, GCLineChart, GCMap, GCMeter, GCPieChart, GCQRCode, GCRadarChart, GCScatterPlot, GCVennDiagram
public abstract class GCAbstractChart
- extends com.webobjects.appserver.WODynamicElement
The base class for all charts. Note that not all bindings are available for all chart types.
- Author:
- mschrag
Bindings |
data | the array, or array of arrays, of data |
size | "wxh" format chart size ("300x400") |
width | the width of the chart |
height | the height of the chart |
colors | an array of color values (for lines, bars, pie slices) |
title | the title of the chart |
titleColor | the color of the chart title |
titleSize | the size of the chart title |
backgroundStyle | "solid", "gradient", or "stripes" |
background | the solid color of the background |
chartBackgroundStyle | "solid", "gradient", or "stripes" |
chartBackground | the solid color of the chart background |
transparency | the transparency color of the chart background |
legend | an array of legend values |
labeledAxes | an array of axes that have labels ("x,y,r") (see http://code.google.com/apis/chart/#multiple_axes_labels) |
axisLabels | an array of array of axis labels |
custom | custom query string parameters to append |
id | the id of the img tag |
class | the class of the img tag |
alt | the alt text of the img tag |
encoding | the explicit chart encoding to use ("simple", "extended", "text") |
normalize | if true, values will be normalized relative to the max value |
maxValue | if false, normalization is off or set to a number to override the max value |
scaling | if true, numbers will be scaled with an automatic min/max, or set to min/max string values (see http://code.google.com/apis/chart/#data_scaling) |
fillArea | the fill area (see http://code.google.com/apis/chart/#fill_area_marker) |
lineStyles | the line styles (see http://code.google.com/apis/chart/#line_styles) |
rangeMarkers | the string that specifies range markers (see http://code.google.com/apis/chart/#hor_line_marker) |
shapeMarkers | the string that specifies shape markers (see http://code.google.com/apis/chart/#shape_markers2) |
gridLines | the override for specifying all gridline values (see http://code.google.com/apis/chart/#grid) |
gridXStep | the number of steps on the x axis between grid lines |
gridYStep | the number of steps on the y axis between grid lines |
gridLineSize | the number of pixels in the line of the dash part of the grid line |
gridBlankSize | the numer of pixels in the spacing between dashes in the grid line |
Field Summary |
protected com.webobjects.appserver.WOAssociation |
_alt
|
protected com.webobjects.appserver.WOAssociation |
_axisLabels
|
protected com.webobjects.appserver.WOAssociation |
_background
|
protected com.webobjects.appserver.WOAssociation |
_backgroundStyle
|
protected com.webobjects.appserver.WOAssociation |
_chartBackground
|
protected com.webobjects.appserver.WOAssociation |
_chartBackgroundStyle
|
protected com.webobjects.appserver.WOAssociation |
_class
|
protected com.webobjects.appserver.WOAssociation |
_colors
|
protected com.webobjects.appserver.WOAssociation |
_custom
|
protected com.webobjects.appserver.WOAssociation |
_data
|
protected com.webobjects.appserver.WOAssociation |
_encoding
|
protected com.webobjects.appserver.WOAssociation |
_fillArea
|
protected com.webobjects.appserver.WOAssociation |
_gridBlankSize
|
protected com.webobjects.appserver.WOAssociation |
_gridLines
|
protected com.webobjects.appserver.WOAssociation |
_gridLineSize
|
protected com.webobjects.appserver.WOAssociation |
_gridXStep
|
protected com.webobjects.appserver.WOAssociation |
_gridYStep
|
protected com.webobjects.appserver.WOAssociation |
_height
|
protected com.webobjects.appserver.WOAssociation |
_id
|
protected com.webobjects.appserver.WOAssociation |
_labeledAxes
|
protected com.webobjects.appserver.WOAssociation |
_legend
|
protected com.webobjects.appserver.WOAssociation |
_lineStyles
|
protected com.webobjects.appserver.WOAssociation |
_maxValue
|
protected com.webobjects.appserver.WOAssociation |
_normalize
|
protected com.webobjects.appserver.WOAssociation |
_rangeMarkers
|
protected com.webobjects.appserver.WOAssociation |
_scaling
|
protected com.webobjects.appserver.WOAssociation |
_shapeMarkers
|
protected com.webobjects.appserver.WOAssociation |
_size
|
protected com.webobjects.appserver.WOAssociation |
_title
|
protected com.webobjects.appserver.WOAssociation |
_titleColor
|
protected com.webobjects.appserver.WOAssociation |
_titleSize
|
protected com.webobjects.appserver.WOAssociation |
_transparency
|
protected com.webobjects.appserver.WOAssociation |
_width
|
Fields inherited from class com.webobjects.appserver.WODynamicElement |
_ConstructorParameters |
Constructor Summary |
GCAbstractChart(java.lang.String name,
com.webobjects.foundation.NSDictionary associations,
com.webobjects.appserver.WOElement element)
|
Method Summary |
protected void |
addQueryParameters(ERXMutableURL chartUrl,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
protected void |
checkData(java.util.List<java.util.List<java.lang.Number>> data,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
protected java.lang.String |
encode(java.util.List<java.util.List<java.lang.Number>> data,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
protected GCAbstractEncoding |
encoding(java.util.List<java.util.List<java.lang.Number>> data,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
protected java.lang.Number |
maxValue(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
protected boolean |
normalize(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
protected java.lang.Object |
scaling(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
|
protected java.lang.String |
styleKey(java.lang.String styleName)
|
Methods inherited from class com.webobjects.appserver.WODynamicElement |
toString |
Methods inherited from class com.webobjects.appserver.WOElement |
invokeAction, takeValuesFromRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_data
protected com.webobjects.appserver.WOAssociation _data
_size
protected com.webobjects.appserver.WOAssociation _size
_width
protected com.webobjects.appserver.WOAssociation _width
_height
protected com.webobjects.appserver.WOAssociation _height
_colors
protected com.webobjects.appserver.WOAssociation _colors
_title
protected com.webobjects.appserver.WOAssociation _title
_titleColor
protected com.webobjects.appserver.WOAssociation _titleColor
_titleSize
protected com.webobjects.appserver.WOAssociation _titleSize
_backgroundStyle
protected com.webobjects.appserver.WOAssociation _backgroundStyle
_background
protected com.webobjects.appserver.WOAssociation _background
_chartBackgroundStyle
protected com.webobjects.appserver.WOAssociation _chartBackgroundStyle
_chartBackground
protected com.webobjects.appserver.WOAssociation _chartBackground
_transparency
protected com.webobjects.appserver.WOAssociation _transparency
_legend
protected com.webobjects.appserver.WOAssociation _legend
_labeledAxes
protected com.webobjects.appserver.WOAssociation _labeledAxes
_axisLabels
protected com.webobjects.appserver.WOAssociation _axisLabels
_custom
protected com.webobjects.appserver.WOAssociation _custom
_id
protected com.webobjects.appserver.WOAssociation _id
_class
protected com.webobjects.appserver.WOAssociation _class
_alt
protected com.webobjects.appserver.WOAssociation _alt
_encoding
protected com.webobjects.appserver.WOAssociation _encoding
_normalize
protected com.webobjects.appserver.WOAssociation _normalize
_maxValue
protected com.webobjects.appserver.WOAssociation _maxValue
_scaling
protected com.webobjects.appserver.WOAssociation _scaling
_fillArea
protected com.webobjects.appserver.WOAssociation _fillArea
_lineStyles
protected com.webobjects.appserver.WOAssociation _lineStyles
_rangeMarkers
protected com.webobjects.appserver.WOAssociation _rangeMarkers
_shapeMarkers
protected com.webobjects.appserver.WOAssociation _shapeMarkers
_gridLines
protected com.webobjects.appserver.WOAssociation _gridLines
_gridXStep
protected com.webobjects.appserver.WOAssociation _gridXStep
_gridYStep
protected com.webobjects.appserver.WOAssociation _gridYStep
_gridLineSize
protected com.webobjects.appserver.WOAssociation _gridLineSize
_gridBlankSize
protected com.webobjects.appserver.WOAssociation _gridBlankSize
GCAbstractChart
public GCAbstractChart(java.lang.String name,
com.webobjects.foundation.NSDictionary associations,
com.webobjects.appserver.WOElement element)
addQueryParameters
protected void addQueryParameters(ERXMutableURL chartUrl,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
checkData
protected void checkData(java.util.List<java.util.List<java.lang.Number>> data,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
maxValue
protected java.lang.Number maxValue(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
normalize
protected boolean normalize(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
scaling
protected java.lang.Object scaling(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
encoding
protected GCAbstractEncoding encoding(java.util.List<java.util.List<java.lang.Number>> data,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
encode
protected java.lang.String encode(java.util.List<java.util.List<java.lang.Number>> data,
com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
styleKey
protected java.lang.String styleKey(java.lang.String styleName)
appendToResponse
public void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
- Overrides:
appendToResponse
in class com.webobjects.appserver.WOElement
Copyright © 2002 – 2007 Project Wonder.