|
|||||||||
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.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.Container
com.gwtext.client.widgets.Panel
com.gwtext.client.widgets.chart.yui.ChartPanel
public abstract class ChartPanel
Base class for YUI based Charts. You must inherit the module
<inherits name="com.gwtext.Charts"/>in your module file in order to use this functionality.
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 | |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
chartConfig
|
protected com.google.gwt.core.client.JavaScriptObject |
chartJS
|
protected boolean |
chartRendered
|
protected Store |
store
|
Fields inherited from class com.gwtext.client.widgets.Component |
---|
config, id |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
protected |
ChartPanel()
|
Method Summary | |
---|---|
void |
afterRender()
Template method that is called after the Component has been renedered. |
protected abstract com.google.gwt.core.client.JavaScriptObject |
createChart(java.lang.String containerID,
com.google.gwt.core.client.JavaScriptObject dataStore,
com.google.gwt.core.client.JavaScriptObject config)
|
java.lang.String |
getChartName()
The chart name. |
void |
refresh()
Refresh the charts dispaly based on the datasource. |
void |
setBackgroundColor(java.lang.String backgroundColor)
The background color of the SWF. |
void |
setCategoryNames(java.lang.String[] categoryNames)
The names of the categories to be displayed in the Chart. |
void |
setChartStyle(java.lang.String name,
java.lang.String value)
|
void |
setDataTipFunction(java.lang.String dataTipFunction)
The string representation of a globally-accessible function that may be called by the SWF to generate the datatip text for a Chart's item. |
void |
setExpressInstall(java.lang.String url)
URL pointing to a SWF file that handles Flash Player's express install feature. |
void |
setPollingInterval(int pollingInterval)
A numeric value indicating the number of milliseconds between polling requests to the DataSource. |
void |
setSeries(SeriesDef[] series)
Defines the series to be displayed by the Chart. |
void |
setStore(Store store)
Set the datastore for the chart. |
void |
setVersion(java.lang.String version)
Minimum required version for the SWF file. |
void |
setWMode(java.lang.String wmode)
Sets the window mode of the Flash Player control. |
Methods inherited from class com.gwtext.client.widgets.Container |
---|
add, add, add, add, addListener, bubble, cascade, clear, doLayout, doLayout, findBy, findByID, findByType, getActiveItem, getActiveItemID, getAutoDestroy, getBufferResize, getComponent, getComponent, getComponents, getHideBorders, getItems, getLayout, getMonitorResize, insert, iterator, remove, remove, remove, remove, removeAll, removeAll, setActiveItem, setActiveItemID, setAutoDestroy, setBufferResize, setDefaults, setHideBorders, setLayout, setMonitorResize |
Methods inherited from class com.gwtext.client.widgets.BoxComponent |
---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected com.google.gwt.core.client.JavaScriptObject chartJS
protected com.google.gwt.core.client.JavaScriptObject chartConfig
protected boolean chartRendered
protected Store store
Constructor Detail |
---|
protected ChartPanel()
Method Detail |
---|
public void afterRender()
Component
afterRender
in class Component
protected abstract com.google.gwt.core.client.JavaScriptObject createChart(java.lang.String containerID, com.google.gwt.core.client.JavaScriptObject dataStore, com.google.gwt.core.client.JavaScriptObject config)
public void setChartStyle(java.lang.String name, java.lang.String value)
public void setStore(Store store)
store
- the storepublic java.lang.String getChartName()
public void setCategoryNames(java.lang.String[] categoryNames)
categoryNames
- the names of the categories to be displayed in the Chart.public void setBackgroundColor(java.lang.String backgroundColor) throws java.lang.IllegalStateException
backgroundColor
- the background color of the SWF.
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setExpressInstall(java.lang.String url) throws java.lang.IllegalStateException
url
- URL pointing to a SWF file that handles Flash Player's express install feature.
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setVersion(java.lang.String version) throws java.lang.IllegalStateException
version
- minimum required version for the SWF file.
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setWMode(java.lang.String wmode) throws java.lang.IllegalStateException
wmode
- sets the window mode of the Flash Player control. May be "window", "opaque", or "transparent".
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setDataTipFunction(java.lang.String dataTipFunction) throws java.lang.IllegalStateException
dataTipFunction
- the data tip function
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setPollingInterval(int pollingInterval) throws java.lang.IllegalStateException
pollingInterval
- polling interval
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setSeries(SeriesDef[] series)
series
- the series to be displayed by the Chart.public void refresh()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |