|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlBasedComponent org.zkoss.zul.Flash org.zkoss.zul.Flashchart
public class Flashchart
The generic flash chart component. Developers set proper chart type, data model, and the src attribute to draw proper chart. The model and type must match to each other; or the result is unpredictable.
type | model |
---|---|
pie | PieModel |
bar | CategoryModel |
line | CategoryModel |
column | CategoryModel |
stackbar | CategoryModel |
stackcolumn | XYModel |
Default HtmlBasedComponent.getWidth()
: 400px
Default HtmlBasedComponent.getHeight()
: 200px
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
HtmlBasedComponent.ExtraCtrl |
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
AbstractComponent.Children |
Field Summary |
---|
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
_zclass |
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
Constructor Summary | |
---|---|
Flashchart()
Sets default values. |
Method Summary | |
---|---|
java.lang.String |
getChartStyle()
Returns the content style. |
ChartModel |
getModel()
Returns the model of chart. |
java.lang.String |
getType()
Returns the type of chart |
java.lang.String |
getXaxis()
Returns the name of X-Axis |
java.lang.String |
getYaxis()
Returns the name of Y-Axis. |
protected void |
renderProperties(ContentRenderer renderer)
RenderProperties method will bind the attributes with FlashChart.js. |
void |
setChartStyle(java.lang.String chartStyle)
Sets the content style of flashchart. |
void |
setModel(ChartModel model)
Sets the model of chart. |
void |
setType(java.lang.String type)
Sets the type of chart. |
void |
setXaxis(java.lang.String xAxis)
Sets X-Axis name of chart. |
void |
setYaxis(java.lang.String yAxis)
Sets Y-Axis name of chart. |
Methods inherited from class org.zkoss.zul.Flash |
---|
getBgcolor, getContent, getQuality, getSrc, getVersion, getWmode, isAutoplay, isAutoPlay, isLoop, setAutoplay, setAutoPlay, setBgcolor, setContent, setLoop, setQuality, setSrc, setVersion, setWmode |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
clone, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Flashchart()
Method Detail |
---|
protected void renderProperties(ContentRenderer renderer) throws java.io.IOException
renderProperties
in class Flash
java.io.IOException
public void setType(java.lang.String type)
Default: "pie"
Allowed Types: pie, line, bar, column, stackbar, stackcolumn
public java.lang.String getType()
public void setModel(ChartModel model)
Only implement models which matched the allowed types
model
- setType(String)
public ChartModel getModel()
public void setXaxis(java.lang.String xAxis)
Default: Series 2
Only used for StackColumnChart and it only works when the chart initial.
public java.lang.String getXaxis()
public void setYaxis(java.lang.String yAxis)
Default: Series 1
Only used for StackColumnChart and it only works when the chart initial.
public java.lang.String getYaxis()
public void setChartStyle(java.lang.String chartStyle)
Default format: "Category-Attribute=Value", ex."legend-display=right"
public java.lang.String getChartStyle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |