|
|||||||||
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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.flash.FlashComponent
com.extjs.gxt.charts.client.Chart
public class Chart
Chart component that uses the Open Flash Chart flash charting library. See http://teethgrinder.co.uk/open-flash-chart-2.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.flash.FlashComponent |
---|
FlashComponent.WMode |
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 EventType |
ChartClick
ChartClick event type. |
Fields inherited from class com.extjs.gxt.ui.client.widget.flash.FlashComponent |
---|
swfElement, swfObject |
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Chart(java.lang.String url)
Creates a new chart using the given url. |
Method Summary | |
---|---|
void |
addChartListener(ChartListener listener)
Adds a chart listener. |
void |
delayedRefresh(int delay)
Refreshes the chart using the current model data using a delay. |
ChartModel |
getChartModel()
Returns the chart model. |
java.lang.String |
getJsonData()
Returns the OFC API JSON data that the chart is using. |
boolean |
isLoaded()
Returns the true is the chart has loaded correctly and is ready for configuration/updates |
protected void |
onAttach()
|
protected void |
onClick(int configIndex,
int dataIndex)
|
protected void |
onDetach()
|
protected java.lang.String |
onGetChartData()
|
protected void |
onReady()
|
protected void |
processModel(ChartModel model)
|
void |
refresh()
Refreshes the chart using the current model data. |
void |
removeChartListener(ChartListener listener)
Removes the chart listener. |
void |
setChartModel(ChartModel model)
Sets the chart model. |
void |
setJsonData(java.lang.String jsonData)
Sets the chart data directly without using a chart model. |
Methods inherited from class com.extjs.gxt.ui.client.widget.flash.FlashComponent |
---|
getExpressInstall, getFlashVersion, getSwfHeight, getSwfId, getSwfWidth, getWmode, injectFlash, isIeFixEnabled, onRender, setExpressInstall, setFlashVersion, setIeFixEnabled, setSwfHeight, setSwfId, setSwfWidth, setWmode |
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, afterRender, createComponentEvent, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onHide, onPosition, onResize, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EventType ChartClick
Constructor Detail |
---|
public Chart(java.lang.String url)
url
- the urlMethod Detail |
---|
public void addChartListener(ChartListener listener)
listener
- the listenerpublic ChartModel getChartModel()
public java.lang.String getJsonData()
setJsonData(String)
, or constructed dynamically via
setChartModel(ChartModel)
.
public boolean isLoaded()
public void delayedRefresh(int delay)
delay
- the delay in mspublic void refresh()
public void removeChartListener(ChartListener listener)
listener
- the listener to be removedpublic void setChartModel(ChartModel model)
model
- the modelpublic void setJsonData(java.lang.String jsonData)
jsonData
- the JSON OFC API dataprotected void onClick(int configIndex, int dataIndex)
protected void onAttach()
onAttach
in class FlashComponent
protected void onDetach()
onDetach
in class FlashComponent
protected java.lang.String onGetChartData()
protected void onReady()
protected void processModel(ChartModel model)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |