GCAbstractChart Class Reference

Inherits com::webobjects::appserver::WODynamicElement.

Inherited by GCBarChart, GCLineChart, GCMap, GCMeter, GCPieChart, GCQRCode, GCRadarChart, GCScatterPlot, and GCVennDiagram.

Collaboration diagram for GCAbstractChart:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void appendToResponse (WOResponse response, WOContext context)
 GCAbstractChart (String name, NSDictionary associations, WOElement element)

Protected Member Functions

void addQueryParameters (ERXMutableURL chartUrl, WOResponse response, WOContext context)
void checkData (List< List< Number >> data, WOResponse response, WOContext context)
String encode (List< List< Number >> data, WOResponse response, WOContext context)
GCAbstractEncoding encoding (List< List< Number >> data, WOResponse response, WOContext context)
Number maxValue (WOResponse response, WOContext context)
boolean normalize (WOResponse response, WOContext context)
Object scaling (WOResponse response, WOContext context)
String styleKey (String styleName)

Protected Attributes

WOAssociation _alt
WOAssociation _axisLabels
WOAssociation _background
WOAssociation _backgroundStyle
WOAssociation _chartBackground
WOAssociation _chartBackgroundStyle
WOAssociation _class
WOAssociation _colors
WOAssociation _custom
WOAssociation _data
WOAssociation _encoding
WOAssociation _fillArea
WOAssociation _gridBlankSize
WOAssociation _gridLines
WOAssociation _gridLineSize
WOAssociation _gridXStep
WOAssociation _gridYStep
WOAssociation _height
WOAssociation _id
WOAssociation _labeledAxes
WOAssociation _legend
WOAssociation _lineStyles
WOAssociation _maxValue
WOAssociation _normalize
WOAssociation _rangeMarkers
WOAssociation _scaling
WOAssociation _shapeMarkers
WOAssociation _size
WOAssociation _title
WOAssociation _titleColor
WOAssociation _titleSize
WOAssociation _transparency
WOAssociation _width


Detailed Description

The base class for all charts. Note that not all bindings are available for all chart types.

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

Author:
mschrag

Constructor & Destructor Documentation

GCAbstractChart ( String  name,
NSDictionary  associations,
WOElement  element 
)


Member Function Documentation

void addQueryParameters ( ERXMutableURL  chartUrl,
WOResponse  response,
WOContext  context 
) [protected]

void appendToResponse ( WOResponse  response,
WOContext  context 
)

void checkData ( List< List< Number >>  data,
WOResponse  response,
WOContext  context 
) [protected]

Reimplemented in GCScatterPlot, and GCVennDiagram.

String encode ( List< List< Number >>  data,
WOResponse  response,
WOContext  context 
) [protected]

GCAbstractEncoding encoding ( List< List< Number >>  data,
WOResponse  response,
WOContext  context 
) [protected]

Reimplemented in GCMap, and GCMeter.

Number maxValue ( WOResponse  response,
WOContext  context 
) [protected]

boolean normalize ( WOResponse  response,
WOContext  context 
) [protected]

Reimplemented in GCMap, and GCMeter.

Object scaling ( WOResponse  response,
WOContext  context 
) [protected]

String styleKey ( String  styleName  )  [protected]


Member Data Documentation

WOAssociation _alt [protected]

WOAssociation _axisLabels [protected]

WOAssociation _background [protected]

WOAssociation _backgroundStyle [protected]

WOAssociation _chartBackground [protected]

WOAssociation _chartBackgroundStyle [protected]

WOAssociation _class [protected]

WOAssociation _colors [protected]

WOAssociation _custom [protected]

WOAssociation _data [protected]

WOAssociation _encoding [protected]

WOAssociation _fillArea [protected]

WOAssociation _gridBlankSize [protected]

WOAssociation _gridLines [protected]

WOAssociation _gridLineSize [protected]

WOAssociation _gridXStep [protected]

WOAssociation _gridYStep [protected]

WOAssociation _height [protected]

WOAssociation _id [protected]

WOAssociation _labeledAxes [protected]

WOAssociation _legend [protected]

WOAssociation _lineStyles [protected]

WOAssociation _maxValue [protected]

WOAssociation _normalize [protected]

WOAssociation _rangeMarkers [protected]

WOAssociation _scaling [protected]

WOAssociation _shapeMarkers [protected]

WOAssociation _size [protected]

WOAssociation _title [protected]

WOAssociation _titleColor [protected]

WOAssociation _titleSize [protected]

WOAssociation _transparency [protected]

WOAssociation _width [protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:18 2012 for Project Wonder by  doxygen 1.5.8