com.google.gwt.visualization.client.visualizations
Class MotionChart

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.visualization.client.visualizations.Visualization<MotionChart.Options>
              extended by com.google.gwt.visualization.client.visualizations.MotionChart
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class MotionChart
extends Visualization<MotionChart.Options>

Motion Chart visualization. Note that this chart does not work when loading the HTML from a local file. It works only when loading the HTML from a web server.

See Also:
Motion Chart Visualization Reference

Nested Class Summary
static class MotionChart.Options
          Options for drawing the chart.
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
static java.lang.String PACKAGE
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MotionChart()
           
MotionChart(AbstractDataTable data, MotionChart.Options options)
           
 
Method Summary
 void addReadyHandler(ReadyHandler handler)
           
 void addStateChangeHandler(StateChangeHandler handler)
           
protected  com.google.gwt.core.client.JavaScriptObject createJso(com.google.gwt.dom.client.Element parent)
          Creates an instance of the underlying JavaScriptObject for this visualization.
 java.lang.String getState()
          Returns the current state of the MotionChart, serialized to a JSON string.
 
Methods inherited from class com.google.gwt.visualization.client.visualizations.Visualization
createDiv, draw, draw, getJso, onLoad, setSize
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PACKAGE

public static final java.lang.String PACKAGE
See Also:
Constant Field Values
Constructor Detail

MotionChart

public MotionChart()

MotionChart

public MotionChart(AbstractDataTable data,
                   MotionChart.Options options)
Method Detail

addReadyHandler

public final void addReadyHandler(ReadyHandler handler)

addStateChangeHandler

public final void addStateChangeHandler(StateChangeHandler handler)

getState

public final java.lang.String getState()
Returns the current state of the MotionChart, serialized to a JSON string. To assign this state to the chart, assign this string to the state option in the draw() method. This is often used to specify a custom chart state on startup, instead of using the default state.

Returns:
a JSON encoded string indicating the state of the UI. This method may return null if the state was not supplied by MotionChart.Options.setState(String) or a statechange event has not yet fired.

createJso

protected com.google.gwt.core.client.JavaScriptObject createJso(com.google.gwt.dom.client.Element parent)
Description copied from class: Visualization
Creates an instance of the underlying JavaScriptObject for this visualization. Subclasses must override this with JSNI that calls the JavaScript constructor for their visualization.

Specified by:
createJso in class Visualization<MotionChart.Options>
Parameters:
parent - The container for the visualization.
Returns:
The underlying JavaScriptObject for the visualization.