org.zkoss.zul
Class Flashchart

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.Flash
              extended by org.zkoss.zul.Flashchart
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Component, Scope, ComponentCtrl

public class Flashchart
extends Flash

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.

typemodel
piePieModel
barCategoryModel
lineCategoryModel
columnCategoryModel
stackbarCategoryModel
stackcolumnXYModel

Default HtmlBasedComponent.getWidth(): 400px

Default HtmlBasedComponent.getHeight(): 200px

Since:
5.0.0
Author:
Joy Lo
See Also:
Serialized Form

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 org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addScopeListener, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableClientUpdate, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeScopeListener, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, willPassivate, willPassivate, willSerialize, willSerialize
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Flashchart

public Flashchart()
Sets default values.

Method Detail

renderProperties

protected void renderProperties(ContentRenderer renderer)
                         throws java.io.IOException
RenderProperties method will bind the attributes with FlashChart.js.

Overrides:
renderProperties in class Flash
Throws:
java.io.IOException

setType

public void setType(java.lang.String type)
Sets the type of chart.

Default: "pie"

Allowed Types: pie, line, bar, column, stackbar, stackcolumn


getType

public java.lang.String getType()
Returns the type of chart


setModel

public void setModel(ChartModel model)
Sets the model of chart. The chart will be redrawn if setting an different model.

Only implement models which matched the allowed types

Parameters:
model -
See Also:
setType(String)

getModel

public ChartModel getModel()
Returns the model of chart.


setXaxis

public void setXaxis(java.lang.String xAxis)
Sets X-Axis name of chart. If doesn't set this attribute, then default will shows Series 2.

Default: Series 2

Only used for StackColumnChart and it only works when the chart initial.


getXaxis

public java.lang.String getXaxis()
Returns the name of X-Axis


setYaxis

public void setYaxis(java.lang.String yAxis)
Sets Y-Axis name of chart. If doesn't set this attribute, then default will shows Series 1.

Default: Series 1

Only used for StackColumnChart and it only works when the chart initial.


getYaxis

public java.lang.String getYaxis()
Returns the name of Y-Axis.


setChartStyle

public void setChartStyle(java.lang.String chartStyle)
Sets the content style of flashchart.

Default format: "Category-Attribute=Value", ex."legend-display=right"


getChartStyle

public java.lang.String getChartStyle()
Returns the content style.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo