|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
---|
_height, _left, _top, _width, _zclass |
Fields inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
_visible |
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 |
---|
focus, getDraggable, getDroppable, getHeight, getHflex, getLeft, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, newExtraCtrl, service, setClass, setDraggable, setDroppable, setFocus, setHeight, setHflex, setLeft, setSclass, setStyle, setTooltiptext, setTop, setVflex, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zkoss.zul.api.Flash |
---|
getBgcolor, getContent, getQuality, getSrc, getVersion, getWmode, isAutoplay, isLoop, setAutoplay, setBgcolor, setContent, setLoop, setQuality, setSrc, setVersion, setWmode |
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
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
setType
in interface Flashchart
public java.lang.String getType()
getType
in interface Flashchart
public void setModel(ChartModel model)
Only implement models which matched the allowed types
setModel
in interface Flashchart
model
- setType(String)
public ChartModel getModel()
getModel
in interface Flashchart
public void setXaxis(java.lang.String xAxis)
Default: Series 2
Only used for StackColumnChart and it only works when the chart initial.
setXaxis
in interface Flashchart
public java.lang.String getXaxis()
getXaxis
in interface Flashchart
public void setYaxis(java.lang.String yAxis)
Default: Series 1
Only used for StackColumnChart and it only works when the chart initial.
setYaxis
in interface Flashchart
public java.lang.String getYaxis()
getYaxis
in interface Flashchart
public void setChartStyle(java.lang.String chartStyle)
Default format: "Category-Attribute=Value", ex."legend-display=right"
setChartStyle
in interface Flashchart
public java.lang.String getChartStyle()
getChartStyle
in interface Flashchart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |