|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.data.BaseModelData
com.extjs.gxt.ui.client.data.BaseModel
com.extjs.gxt.charts.client.model.charts.ChartConfig
public abstract class ChartConfig
Base abstract class for OFC charts.
Field Summary | |
---|---|
protected DataProvider |
dataProvider
|
protected ChartModel |
model
|
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModel |
---|
changeEventSupport |
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModelData |
---|
allowNestedValues, map |
Fields inherited from interface com.extjs.gxt.ui.client.data.ChangeEventSource |
---|
Add, Remove, Update |
Constructor Summary | |
---|---|
protected |
ChartConfig(java.lang.String type)
Creates a new element. |
Method Summary | |
---|---|
void |
addChartListener(ChartListener listener)
Adds a chart listener. |
void |
addNullValue()
Adds a null value (skip this value). |
java.util.List<ChartListener> |
getChartListeners()
Returns the configs chart listeners. |
DataProvider |
getDataProvider()
Returns the chart's data provider. |
java.lang.Integer |
getFontSize()
Returns the font size. |
ChartModel |
getModel()
Returns the chart's model. |
java.lang.String |
getText()
Returns the text. |
java.lang.String |
getTooltip()
Returns the tooltip. |
java.lang.String |
getType()
Returns the type. |
java.util.List<DataConfig> |
getValues()
Returns the values. |
boolean |
isEnableEvents()
Returns whether click events are enabled. |
void |
removeChartListener(ChartListener listener)
Removes the chart listener. |
void |
setAnimateOnShow(boolean animateOnShow)
|
protected void |
setDataProvider(DataProvider dataProvider)
|
void |
setEnableEvents(boolean enableEvents)
True to enable click events for the chart config (defaults to false). |
void |
setFontSize(java.lang.Integer fontSize)
Sets the font size. |
void |
setKeys(Keys... keys)
Sets the stack keys. |
void |
setKeys(java.util.List<Keys> keys)
Sets the stack keys. |
void |
setModel(ChartModel model)
Sets the chart's model. |
void |
setText(java.lang.String text)
Sets the text. |
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip text (#val# is the default) |
void |
setValues(java.util.List<DataConfig> values)
Sets the values. |
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModel |
---|
addChangeListener, addChangeListener, fireEvent, fireEvent, isSilent, notify, notifyPropertyChanged, remove, removeChangeListener, removeChangeListeners, set, setSilent |
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData |
---|
get, get, getProperties, getPropertyNames, isAllowNestedValues, setAllowNestedValues, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.extjs.gxt.ui.client.data.ModelData |
---|
get, getProperties, getPropertyNames |
Field Detail |
---|
protected ChartModel model
protected DataProvider dataProvider
Constructor Detail |
---|
protected ChartConfig(java.lang.String type)
type
- the typeMethod Detail |
---|
public void setAnimateOnShow(boolean animateOnShow)
public void addChartListener(ChartListener listener)
listener
- the listenerpublic void addNullValue()
public java.util.List<ChartListener> getChartListeners()
public DataProvider getDataProvider()
public java.lang.Integer getFontSize()
public ChartModel getModel()
public java.lang.String getText()
public java.lang.String getTooltip()
public java.lang.String getType()
public java.util.List<DataConfig> getValues()
public boolean isEnableEvents()
public void removeChartListener(ChartListener listener)
listener
- the listener to be removedpublic void setEnableEvents(boolean enableEvents)
enableEvents
- true to enable click eventspublic void setFontSize(java.lang.Integer fontSize)
fontSize
- the font sizepublic void setKeys(Keys... keys)
keys
- the keyspublic void setKeys(java.util.List<Keys> keys)
keys
- the keyspublic void setModel(ChartModel model)
model
- the modelpublic void setText(java.lang.String text)
text
- the textpublic void setTooltip(java.lang.String tooltip)
tooltip
- the tooltippublic void setValues(java.util.List<DataConfig> values)
values
- the valuesprotected void setDataProvider(DataProvider dataProvider)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |