|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.visualization.client.visualizations.Visualization<OptionsType>
OptionsType
- The options for drawing this visualization.public abstract class Visualization<OptionsType extends AbstractDrawOptions>
A Visualization object can draw a DataTable.
Nested Class Summary |
---|
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 |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Visualization()
|
|
Visualization(AbstractDataTable data,
OptionsType options)
|
Method Summary | |
---|---|
static com.google.gwt.dom.client.Element |
createDiv(int width,
int height)
Create a div with the given width and height. |
protected abstract com.google.gwt.core.client.JavaScriptObject |
createJso(com.google.gwt.dom.client.Element div)
Creates an instance of the underlying JavaScriptObject for this visualization. |
void |
draw(AbstractDataTable data)
Draws the visualization. |
void |
draw(AbstractDataTable data,
OptionsType options)
Draws the visualization. |
com.google.gwt.core.client.JavaScriptObject |
getJso()
Note: calling this method should not usually be necessary except by subclasses. |
protected void |
onLoad()
|
static void |
setSize(com.google.gwt.dom.client.Element div,
int width,
int height)
Set the size of a div element by setting the style attribute. |
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 |
Constructor Detail |
---|
public Visualization()
public Visualization(AbstractDataTable data, OptionsType options)
Method Detail |
---|
public static com.google.gwt.dom.client.Element createDiv(int width, int height)
width
- The desired width.height
- The desired height.
public static void setSize(com.google.gwt.dom.client.Element div, int width, int height)
div
- An HTML width
- The desired width.height
- The desierd height.
public final void draw(AbstractDataTable data)
data
- The DataTable with the data.public final void draw(AbstractDataTable data, OptionsType options)
data
- The DataTable with the data.options
- The options for drawing this visualization.public com.google.gwt.core.client.JavaScriptObject getJso()
protected abstract com.google.gwt.core.client.JavaScriptObject createJso(com.google.gwt.dom.client.Element div)
div
- The container for the visualization.
protected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |