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

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<AnnotatedTimeLine.Options>
              extended by com.google.gwt.visualization.client.visualizations.AnnotatedTimeLine
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 AnnotatedTimeLine
extends Visualization<AnnotatedTimeLine.Options>

Annotated timeline visualization. May be loaded by calling: google.load("visualization", "1", {packages:["annotatedtimeline"]});

See Also:
Annotated Timeline Visualization Reference.

Nested Class Summary
static class AnnotatedTimeLine.AnnotatedLegendPosition
          Where to put the colored legend with respect to the date.
static class AnnotatedTimeLine.HighlightDotMode
          The highlighting mode: The nearest dot to the mouse (default), or the last one before the mouse (to the left of it).
static class AnnotatedTimeLine.Options
          Options for drawing the chart.
static class AnnotatedTimeLine.ScaleType
          Scale type for the timeline.
static class AnnotatedTimeLine.WindowMode
          Flash/IE "wmode" parameter.
 
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
AnnotatedTimeLine(AbstractDataTable data, AnnotatedTimeLine.Options options, java.lang.String width, java.lang.String height)
           
AnnotatedTimeLine(java.lang.String width, java.lang.String height)
           
 
Method Summary
 void addRangeChangeHandler(RangeChangeHandler handler)
           
 void addReadyHandler(ReadyHandler handler)
           
 void addSelectHandler(SelectHandler 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.
 com.google.gwt.core.client.JsArray<Selection> getSelections()
           
 DateRange getVisibleChartRange()
           
 void hideDataColumns(int... columnIndexes)
           
 void hideDataColumns(com.google.gwt.core.client.JsArrayInteger columnIndexes)
           
 void setVisibleChartRange(java.util.Date startTime, java.util.Date endTime)
           
 void showDataColumns(int... columnIndexes)
           
 void showDataColumns(com.google.gwt.core.client.JsArrayInteger columnIndexes)
           
 
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

AnnotatedTimeLine

public AnnotatedTimeLine(AbstractDataTable data,
                         AnnotatedTimeLine.Options options,
                         java.lang.String width,
                         java.lang.String height)
Parameters:
data - data to visualize
options - Optional parameters for the visualization
width - the CSS specifier for the width of the visualization
height - the CSS specifier for the height of the visualization

AnnotatedTimeLine

public AnnotatedTimeLine(java.lang.String width,
                         java.lang.String height)
Parameters:
width - the CSS specifier for the width of the visualization
height - the CSS specifier for the height of the visualization
Method Detail

addRangeChangeHandler

public final void addRangeChangeHandler(RangeChangeHandler handler)

addReadyHandler

public final void addReadyHandler(ReadyHandler handler)

addSelectHandler

public final void addSelectHandler(SelectHandler handler)

getSelections

public final com.google.gwt.core.client.JsArray<Selection> getSelections()

getVisibleChartRange

public final DateRange getVisibleChartRange()

hideDataColumns

public final void hideDataColumns(int... columnIndexes)

hideDataColumns

public final void hideDataColumns(com.google.gwt.core.client.JsArrayInteger columnIndexes)

setVisibleChartRange

public final void setVisibleChartRange(java.util.Date startTime,
                                       java.util.Date endTime)

showDataColumns

public final void showDataColumns(int... columnIndexes)

showDataColumns

public final void showDataColumns(com.google.gwt.core.client.JsArrayInteger columnIndexes)

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<AnnotatedTimeLine.Options>
Parameters:
parent - The container for the visualization.
Returns:
The underlying JavaScriptObject for the visualization.