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

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<MapVisualization.Options>
              extended by com.google.gwt.visualization.client.visualizations.MapVisualization
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, Selectable

public class MapVisualization
extends Visualization<MapVisualization.Options>
implements Selectable

Map visualization using the Google Maps API. Data values are displayed as points on the map. Data values can be coordinates or addresses. You need to load the Google Maps API with a valid Maps key in order to use this visualization.

See Also:
Map Visualization Reference

Nested Class Summary
static class MapVisualization.Options
          Options for drawing the chart.
static class MapVisualization.Type
          The type of map to use.
 
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
MapVisualization(AbstractDataTable data, MapVisualization.Options options, java.lang.String width, java.lang.String height)
           
MapVisualization(java.lang.String width, java.lang.String height)
           
 
Method Summary
 void addSelectHandler(SelectHandler handler)
          Add a SelectHandler to the visualization.
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()
          Get the Selections that are currently selected.
 void setSelections(com.google.gwt.core.client.JsArray<Selection> sel)
          Set the Selections on the Selectable visualization.
 
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

MapVisualization

public MapVisualization(AbstractDataTable data,
                        MapVisualization.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

MapVisualization

public MapVisualization(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

addSelectHandler

public final void addSelectHandler(SelectHandler handler)
Description copied from interface: Selectable
Add a SelectHandler to the visualization.

Specified by:
addSelectHandler in interface Selectable
Parameters:
handler - A SelectHandler.

getSelections

public final com.google.gwt.core.client.JsArray<Selection> getSelections()
Description copied from interface: Selectable
Get the Selections that are currently selected.

Specified by:
getSelections in interface Selectable
Returns:
A JsArray of Selections.

setSelections

public final void setSelections(com.google.gwt.core.client.JsArray<Selection> sel)
Description copied from interface: Selectable
Set the Selections on the Selectable visualization.

Specified by:
setSelections in interface Selectable
Parameters:
sel - An array of Selections.

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