EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.google.chart.internal
Class AbstractChart<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>
All Implemented Interfaces:
Serializable, RenderIdSupport
Direct Known Subclasses:
Map, Meter, QRCode, SimpleChart

public abstract class AbstractChart<N extends Number>
extends AbstractContainer

The abstract base class for the components that wrap the charts provided by Google Chart API.

Version:
$Id: AbstractChart.java 86 2008-11-09 14:44:29Z sptrakesh $
Author:
Rakesh 2008-08-10
See Also:
Serialized Form

Field Summary
static String PROPERTY_ALT
          The alternate text to display for the image and chart.
static String PROPERTY_DATA
          An array of ChartData model objects that are to be plotted.
static String PROPERTY_FILL
          The colour fill property for the chart.
static String PROPERTY_TITLE
          The title to display for chart.
 
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
AbstractChart()
           
 
Method Summary
 String getAlt()
          Get the value of the PROPERTY_ALT property.
 Collection<ChartData<N>> getData()
          Get the value of the PROPERTY_DATA property.
 String getFill()
          Get the value of the PROPERTY_FILL property.
 Title getTitle()
          Get the value of the PROPERTY_TITLE property.
 boolean isValidChild(Component child)
          AbstractChart is NOT allowed to have any children.
 void setAlt(String alt)
          Set the value of the PROPERTY_ALT property.
 void setData(ChartData<N> data)
          Set the value of the PROPERTY_DATA property using the specified single data model object instance.
 void setData(Collection<ChartData<N>> data)
          Set the value of the PROPERTY_DATA property.
 void setFill(String fill)
          Set the value of the PROPERTY_FILL property.
 void setTitle(Title title)
          Set the value of the PROPERTY_TITLE property.
 
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_ALT

public static final String PROPERTY_ALT
The alternate text to display for the image and chart. This property may be styled.

See Also:
Constant Field Values

PROPERTY_FILL

public static final String PROPERTY_FILL
The colour fill property for the chart. Refer to the colour fill and linear gradient notes for the Google Chart API to determine the proper formatted string values that may be specified for charts. This property is best styled using the same string values as documented by the chart api.

See Also:
Constant Field Values

PROPERTY_DATA

public static final String PROPERTY_DATA
An array of ChartData model objects that are to be plotted. Note that all elements of the array should have the same type of model. Either all model elements must be simple (only xdata), or should have both xdata and ydata. This property cannot be styled.

See Also:
Constant Field Values

PROPERTY_TITLE

public static final String PROPERTY_TITLE
The title to display for chart. Must be of type Title. This property cannot be styled.

See Also:
Constant Field Values
Constructor Detail

AbstractChart

public AbstractChart()
Method Detail

isValidChild

public boolean isValidChild(Component child)
AbstractChart is NOT allowed to have any children.

Overrides:
isValidChild in class Component
See Also:
Component.isValidChild(nextapp.echo.app.Component)

getAlt

public String getAlt()
Get the value of the PROPERTY_ALT property.

Returns:
The value of the PROPERTY_ALT property.

setAlt

public void setAlt(String alt)
Set the value of the PROPERTY_ALT property.

Parameters:
alt - The value to set for the property.

getFill

public String getFill()
Get the value of the PROPERTY_FILL property.

Returns:
The value of the PROPERTY_FILL property.

setFill

public void setFill(String fill)
Set the value of the PROPERTY_FILL property.

Parameters:
fill - The value to set for the property.

getData

public Collection<ChartData<N>> getData()
Get the value of the PROPERTY_DATA property.

Returns:
The value of the PROPERTY_DATA property.

setData

public void setData(Collection<ChartData<N>> data)
Set the value of the PROPERTY_DATA property.

Parameters:
data - The collection of model objects.

setData

public void setData(ChartData<N> data)
Set the value of the PROPERTY_DATA property using the specified single data model object instance.

Parameters:
data - The value to set for the property.
See Also:
setData( Collection )

getTitle

public Title getTitle()
Get the value of the PROPERTY_TITLE property.

Returns:
The value of the PROPERTY_TITLE property.

setTitle

public void setTitle(Title title)
Set the value of the PROPERTY_TITLE property.

Parameters:
title - The value to set for the property.

EchoPoint API - 3.0.0b5
App Webcontainer