EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.google.chart.internal
Class AdvancedChart<N extends Number>

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by echopoint.internal.AbstractContainer
          extended by echopoint.google.chart.internal.AbstractChart<N>
              extended by echopoint.google.chart.internal.SimpleChart<N>
                  extended by echopoint.google.chart.internal.AdvancedChart<N>
All Implemented Interfaces:
Serializable, RenderIdSupport
Direct Known Subclasses:
BarChart, LineChart, RadarChart, ScatterPlot, Sparkline

public class AdvancedChart<N extends Number>
extends SimpleChart<N>

An abstract base class for charts that support most of the configuration options supported by Google Chart API.

Version:
$Id: AdvancedChart.java 83 2008-11-08 19:32:18Z sptrakesh $
Author:
Rakesh Vidyadharan 2008-08-20
See Also:
Serialized Form

Field Summary
static String PROPERTY_AXIS_LABELS
          The collection of collection of labels (string) for the axes.
static String PROPERTY_AXIS_RANGES
          The ranges for the axes defined for the chart.
static String PROPERTY_AXIS_STYLES
          The styles to apply for the axis labels.
static String PROPERTY_AXIS_TYPE
          The axis type specification for the chart.
static String PROPERTY_FILL_AREA
          A collection of FillArea instances that represent the areas between lines that are to be filled.
static String PROPERTY_GRID_LINES
          Style that controls display of grid lines.
static String PROPERTY_LABEL_POSITIONS
          The label positions for the axis labels.
static String PROPERTY_LINE_STYLES
          The line styles for the data sets plotted.
static String PROPERTY_RANGE_MARKERS
          Range markers to display on the graph.
 
Fields inherited from class echopoint.google.chart.internal.SimpleChart
PROPERTY_LEGEND_POSITION
 
Fields inherited from class echopoint.google.chart.internal.AbstractChart
PROPERTY_ALT, PROPERTY_DATA, PROPERTY_FILL, PROPERTY_TITLE
 
Fields inherited from class echopoint.internal.AbstractContainer
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
AdvancedChart()
           
 
Method Summary
 Collection<Collection<String>> getAxisLabels()
          Return the value of the PROPERTY_AXIS_LABELS property.
 Collection<Range> getAxisRanges()
          Return the value of the PROPERTY_AXIS_RANGES property.
 String getAxisStyles()
          Return the value of the PROPERTY_AXIS_STYLES property.
 String getAxisType()
          Return the value of the PROPERTY_AXIS_TYPE property.
 Collection<FillArea> getFillArea()
          Return the value of the PROPERTY_FILL_AREA property.
 String getGridLines()
          Return the value of the PROPERTY_GRID_LINES property.
 Collection<Collection<N>> getLabelPositions()
          Return the value of the PROPERTY_LABEL_POSITIONS property.
 Collection<LineStyle> getLineStyles()
          Return the value of the PROPERTY_LINE_STYLES property.
 Collection<RangeMarker> getRangeMarkers()
          Return the value of the PROPERTY_RANGE_MARKERS property.
 void setAxisLabels(Collection<Collection<String>> labels)
          Set the value of the PROPERTY_AXIS_LABELS property using the specified collection of collection of strings.
 void setAxisRanges(Collection<Range> ranges)
          Set the value of the PROPERTY_AXIS_RANGES property using the collection of range values.
 void setAxisStyles(String styles)
          Set the value of the PROPERTY_AXIS_STYLES property.
 void setAxisType(String type)
          Set the value of the PROPERTY_AXIS_TYPE property.
 void setFillArea(Collection<FillArea> area)
          Set the value of the PROPERTY_FILL_AREA property using the collection of area instances.
 void setGridLines(String gridLines)
          Set the value of the PROPERTY_GRID_LINES property.
 void setLabelPositions(Collection<Collection<N>> positions)
          Set the value of the PROPERTY_LABEL_POSITIONS property using the collection of collection of numbers.
 void setLineStyles(Collection<LineStyle> styles)
          Set the value of the PROPERTY_LINE_STYLES property.
 void setRangeMarkers(Collection<RangeMarker> markers)
          Set the value of the PROPERTY_RANGE_MARKERS property.
 
Methods inherited from class echopoint.google.chart.internal.SimpleChart
getLegendPosition, setLegendPosition
 
Methods inherited from class echopoint.google.chart.internal.AbstractChart
getAlt, getData, getFill, getTitle, isValidChild, setAlt, setData, setData, setFill, setTitle
 
Methods inherited from class echopoint.internal.AbstractContainer
addActionListener, fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, hasActionListeners, removeActionListener, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_AXIS_TYPE

public static final String PROPERTY_AXIS_TYPE
The axis type specification for the chart. This property can be styled. See Axis type documentation.

See Also:
Constant Field Values

PROPERTY_AXIS_LABELS

public static final String PROPERTY_AXIS_LABELS
The collection of collection of labels (string) for the axes. This must have as many child collections as there are axis types defined in AXIS_TYPE. See Axis labels documentation. This property cannot be styled.

See Also:
Constant Field Values

PROPERTY_LABEL_POSITIONS

public static final String PROPERTY_LABEL_POSITIONS
The label positions for the axis labels. This can be used to present labels that are non-unoformly distributed along the axis. Similar to AXIS_LABELS, this is specified as a collection of collection of label positions (numbers). This property cannot be styled. See Axis positions documentation.

See Also:
Constant Field Values

PROPERTY_AXIS_RANGES

public static final String PROPERTY_AXIS_RANGES
The ranges for the axes defined for the chart. The value is expressed as a collection of Range object instances with the collection size being equal to the number of axes defined for the chart. This property cannot be styled. See Axis ranges documentation.

See Also:
Constant Field Values

PROPERTY_AXIS_STYLES

public static final String PROPERTY_AXIS_STYLES
The styles to apply for the axis labels. The value is expressed as a string with the specified format without the &chxs= prefix. This property is best set as a style. See Axis styles documentation for specification.

See Also:
Constant Field Values

PROPERTY_LINE_STYLES

public static final String PROPERTY_LINE_STYLES
The line styles for the data sets plotted. Value is expressed as a collection of LineStyle objects. This property is not styleable.

See Also:
Constant Field Values

PROPERTY_GRID_LINES

public static final String PROPERTY_GRID_LINES
Style that controls display of grid lines. See Grid lines documentation for specification. Express the values without the &chls= prefix in the style sheet.

See Also:
Constant Field Values

PROPERTY_RANGE_MARKERS

public static final String PROPERTY_RANGE_MARKERS
Range markers to display on the graph. Value is specified as a collection of RangeMarker objects. This property is not styleable.

See Also:
Constant Field Values

PROPERTY_FILL_AREA

public static final String PROPERTY_FILL_AREA
A collection of FillArea instances that represent the areas between lines that are to be filled. This property is not styleable.

See Also:
Constant Field Values
Constructor Detail

AdvancedChart

public AdvancedChart()
Method Detail

getAxisType

public String getAxisType()
Return the value of the PROPERTY_AXIS_TYPE property.

Returns:
The property value.

setAxisType

public void setAxisType(String type)
Set the value of the PROPERTY_AXIS_TYPE property.

Parameters:
type - The value of the property to set.

getAxisLabels

public Collection<Collection<String>> getAxisLabels()
Return the value of the PROPERTY_AXIS_LABELS property.

Returns:
The property value.

setAxisLabels

public void setAxisLabels(Collection<Collection<String>> labels)
Set the value of the PROPERTY_AXIS_LABELS property using the specified collection of collection of strings.

Parameters:
labels - The value to set.

getLabelPositions

public Collection<Collection<N>> getLabelPositions()
Return the value of the PROPERTY_LABEL_POSITIONS property.

Returns:
The property value.

setLabelPositions

public void setLabelPositions(Collection<Collection<N>> positions)
Set the value of the PROPERTY_LABEL_POSITIONS property using the collection of collection of numbers.

Parameters:
positions - The value to set after converting to JSON.

getAxisRanges

public Collection<Range> getAxisRanges()
Return the value of the PROPERTY_AXIS_RANGES property.

Returns:
The property value.

setAxisRanges

public void setAxisRanges(Collection<Range> ranges)
Set the value of the PROPERTY_AXIS_RANGES property using the collection of range values.

Parameters:
ranges - The value to set.

getAxisStyles

public String getAxisStyles()
Return the value of the PROPERTY_AXIS_STYLES property.

Returns:
The property value.

setAxisStyles

public void setAxisStyles(String styles)
Set the value of the PROPERTY_AXIS_STYLES property.

Parameters:
styles - The value of the property to set.

getLineStyles

public Collection<LineStyle> getLineStyles()
Return the value of the PROPERTY_LINE_STYLES property.

Returns:
The property value.

setLineStyles

public void setLineStyles(Collection<LineStyle> styles)
Set the value of the PROPERTY_LINE_STYLES property.

Parameters:
styles - The value of the property to set.

getGridLines

public String getGridLines()
Return the value of the PROPERTY_GRID_LINES property.

Returns:
The property value.

setGridLines

public void setGridLines(String gridLines)
Set the value of the PROPERTY_GRID_LINES property.

Parameters:
gridLines - The value of the property to set.

getRangeMarkers

public Collection<RangeMarker> getRangeMarkers()
Return the value of the PROPERTY_RANGE_MARKERS property.

Returns:
The property value.

setRangeMarkers

public void setRangeMarkers(Collection<RangeMarker> markers)
Set the value of the PROPERTY_RANGE_MARKERS property.

Parameters:
markers - The value of the property to set.

getFillArea

public Collection<FillArea> getFillArea()
Return the value of the PROPERTY_FILL_AREA property.

Returns:
The property value.

setFillArea

public void setFillArea(Collection<FillArea> area)
Set the value of the PROPERTY_FILL_AREA property using the collection of area instances.

Parameters:
area - The value of the property to set.

EchoPoint API - 3.0.0b5
App Webcontainer