|
|||||||||
| 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.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 |
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, isIeFixEnabled, setExpressInstall, setFlashVersion, setIeFixEnabled, setSwfHeight, setSwfId, setSwfWidth, setWmode |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, 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 |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final EventType ChartClick
| Constructor Detail |
|---|
public Chart(java.lang.String url)
url - the url| Method 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 data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||