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

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

Organization Chart visualization. May be loaded by calling: google.load("visualization", "1", {packages:["orgchart"]});

See Also:
Organization Chart Visualization Reference

Nested Class Summary
static class OrgChart.Options
          Options for drawing the chart.
static class OrgChart.Size
          Argument to Options#setSize(Size)
 
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
OrgChart()
           
OrgChart(AbstractDataTable data, OrgChart.Options options)
           
 
Method Summary
 void addCollapseHandler(CollapseHandler handler)
           
 void addOnMouseOutHandler(OnMouseOutHandler handler)
           
 void addOnMouseOverHandler(OnMouseOverHandler handler)
           
 void addReadyHandler(ReadyHandler handler)
           
 void addSelectHandler(SelectHandler handler)
          Add a SelectHandler to the visualization.
 void collapse(int row, boolean collapsed)
           
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.JsArrayInteger getChildrenIndexes(int row)
           
 com.google.gwt.core.client.JsArrayInteger getCollapsedNodes()
           
 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

OrgChart

public OrgChart()

OrgChart

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

addCollapseHandler

public final void addCollapseHandler(CollapseHandler handler)

addOnMouseOutHandler

public final void addOnMouseOutHandler(OnMouseOutHandler handler)

addOnMouseOverHandler

public final void addOnMouseOverHandler(OnMouseOverHandler handler)

addReadyHandler

public final void addReadyHandler(ReadyHandler handler)

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.

collapse

public void collapse(int row,
                     boolean collapsed)

getChildrenIndexes

public com.google.gwt.core.client.JsArrayInteger getChildrenIndexes(int row)

getCollapsedNodes

public com.google.gwt.core.client.JsArrayInteger getCollapsedNodes()

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