Java Doc for Chart.java in  » Ajax » zk » org » zkoss » zul » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » zk » org.zkoss.zul 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.zkoss.zul.Image
   org.zkoss.zul.Imagemap
      org.zkoss.zul.Chart

Chart
public class Chart extends Imagemap (Code)
The generic chart component. Developers set proper chart type, data model, and the threeD (3D) attribute to draw proper chart. The model and type must match to each other; or the result is unpredictable. The 3D chart is not supported on all chart type.
typemodel3D
pie PieModel o
ring PieModel x
bar CategoryModel o
line CategoryModel or XYModel o
area CategoryModel or XYModel x
stacked_bar CategoryModel o
stacked_area CategoryModel or XYModel x
waterfall CategoryModel x
polar XYModel x
scatter XYModel x
time_series XYModel x
polar XYModel x
step_area XYModel x
step XYModel x
histogram XYModel x
candlestick HiLoModel x
hilow HiLoModel x

See Also:   ChartEngine
See Also:   ChartModel
author:
   henrichen


Field Summary
final public static  StringAREA
    
final public static  StringBAR
    
final public static  StringCANDLESTICK
    
final public static  StringDAY
    
final public static  StringHIGHLOW
    
final public static  StringHISTOGRAM
    
final public static  StringHOUR
    
final public static  StringLINE
    
final public static  StringMILLISECOND
    
final public static  StringMINUTE
    
final public static  StringMONTH
    
final public static  StringPIE
    
final public static  StringPOLAR
    
final public static  StringQUARTER
    
final public static  StringRING
    
final public static  StringSCATTER
    
final public static  StringSECOND
    
final public static  StringSTACKED_AREA
    
final public static  StringSTACKED_BAR
    
final public static  StringSTEP
    
final public static  StringSTEP_AREA
    
final public static  StringTIME_SERIES
    
final public static  StringWATERFALL
    
final public static  StringWEEK
    
final public static  StringYEAR
    

Constructor Summary
public  Chart()
    

Method Summary
static  voiddecode(String color, int[] rgb)
    
public  ChartAreaListenergetAreaListener()
     Returns the renderer to render each area, or null if the default renderer is used.
public  intgetBgAlpha()
     Get the background alpha (transparency, 0 ~ 255, opacue).
public  StringgetBgColor()
     Get the background color of the chart (in string as #RRGGBB).
public  int[]getBgRGB()
     Get the background color in int array (0: red, 1: green, 2:blue).
public  ChartEnginegetEngine()
     Returns the implemetation chart engine.
public  intgetFgAlpha()
     Get the foreground alpha (transparency, 0 ~ 255, opacue).
public  intgetIntHeight()
     Get the chart int width in pixel; to be used by the derived subclass.
public  intgetIntWidth()
     Get the chart int width in pixel; to be used by the derived subclass.
public  ChartModelgetModel()
     Returns the chart model associated with this chart, or null if this chart is not associated with any chart data model.
public  StringgetOrient()
    
public  intgetPaneAlpha()
     Get the pane alpha (transparency, 0 ~ 255, opacue).
public  StringgetPaneColor()
     Get the pane color of the chart (in string as #RRGGBB).
public  int[]getPaneRGB()
     Get the pane color in int array (0: red, 1: green, 2:blue).
public  StringgetPeriod()
     Returns the period used in Time Series Chart.
public  TimeZonegetTimeZone()
     Returns the time zone that this Time Series Chart belongs to, or null if the default time zone is used.
public  StringgetTitle()
     Get the chart's title.
public  StringgetType()
     Get the chart's type.
public  StringgetXAxis()
     Get the label in xAxis.
public  StringgetYAxis()
     Get the label in yAxis.
public  booleanisShowLegend()
     Check whether show the legend of the chart.
public  booleanisShowTooltiptext()
     Check whether show the tooltiptext.
public  booleanisThreeD()
     Whether a 3d chart.
protected  ChartEnginenewChartEngine()
     Instantiates the default chart engine. It is called, if Chart.setEngine is not called with non-null engine.

By default, it looks up the component attribute called chart-engine.

public  voidsetAreaListener(ChartAreaListener listener)
     Sets the renderer which is used to render each area.
public  voidsetAreaListener(String clsnm)
     Sets the renderer by use of a class name.
public  voidsetBgAlpha(int alpha)
     Set the background alpha (transparency, 0 ~ 255).
public  voidsetBgColor(String color)
     Set the background color of the chart.
public  voidsetEngine(ChartEngine engine)
     Sets the chart engine.
public  voidsetEngine(String clsnm)
     Sets the chart engine by use of a class name.
public  voidsetFgAlpha(int alpha)
     Set the foreground alpha (transparency, 0 ~ 255).
public  voidsetHeight(String h)
     Override super class to prepare the int height.
public  voidsetModel(ChartModel model)
     Sets the chart model associated with this chart.
public  voidsetModel(String clsnm)
     Sets the model by use of a class name.
public  voidsetOrient(String orient)
     Set the chart orientation.
public  voidsetPaneAlpha(int alpha)
     Set the pane alpha (transparency, 0 ~ 255).
public  voidsetPaneColor(String color)
     Set the pane color of the chart.
public  voidsetPeriod(String period)
     Sets the period used in Time Series Chart.
public  voidsetShowLegend(boolean showLegend)
     whether show the chart's legend.
public  voidsetShowTooltiptext(boolean showTooltiptext)
     whether show the chart's tooltip.
public  voidsetThreeD(boolean b)
     Set true to show three dimensional graph (If a type of chart got no 3d peer, this is ignored).
public  voidsetTimeZone(TimeZone tzone)
     Sets the time zone that this Time Series Chart belongs to, or null if the default time zone is used.
public  voidsetTitle(String title)
     Set the chart's title.
public  voidsetType(String type)
     Set the chart's type (Chart.PIE, Chart.BAR, Chart.LINE, etc.).
public  voidsetWidth(String w)
     Override super class to prepare the int width.
public  voidsetXAxis(String label)
     Set the label in xAxis.
public  voidsetYAxis(String label)
     Set the label in yAxis.
protected  voidsmartDrawChart()
     mark a draw flag to inform that this Chart needs update.
static  intstringToInt(String str)
    

Field Detail
AREA
final public static String AREA(Code)



BAR
final public static String BAR(Code)



CANDLESTICK
final public static String CANDLESTICK(Code)



DAY
final public static String DAY(Code)



HIGHLOW
final public static String HIGHLOW(Code)



HISTOGRAM
final public static String HISTOGRAM(Code)



HOUR
final public static String HOUR(Code)



LINE
final public static String LINE(Code)



MILLISECOND
final public static String MILLISECOND(Code)



MINUTE
final public static String MINUTE(Code)



MONTH
final public static String MONTH(Code)



PIE
final public static String PIE(Code)



POLAR
final public static String POLAR(Code)



QUARTER
final public static String QUARTER(Code)



RING
final public static String RING(Code)



SCATTER
final public static String SCATTER(Code)



SECOND
final public static String SECOND(Code)



STACKED_AREA
final public static String STACKED_AREA(Code)



STACKED_BAR
final public static String STACKED_BAR(Code)



STEP
final public static String STEP(Code)



STEP_AREA
final public static String STEP_AREA(Code)



TIME_SERIES
final public static String TIME_SERIES(Code)



WATERFALL
final public static String WATERFALL(Code)



WEEK
final public static String WEEK(Code)



YEAR
final public static String YEAR(Code)




Constructor Detail
Chart
public Chart()(Code)




Method Detail
decode
static void decode(String color, int[] rgb)(Code)



getAreaListener
public ChartAreaListener getAreaListener()(Code)
Returns the renderer to render each area, or null if the default renderer is used.



getBgAlpha
public int getBgAlpha()(Code)
Get the background alpha (transparency, 0 ~ 255, opacue).



getBgColor
public String getBgColor()(Code)
Get the background color of the chart (in string as #RRGGBB). null means default.



getBgRGB
public int[] getBgRGB()(Code)
Get the background color in int array (0: red, 1: green, 2:blue). null means default.



getEngine
public ChartEngine getEngine() throws UiException(Code)
Returns the implemetation chart engine.
exception:
  UiException - if failed to load the engine.



getFgAlpha
public int getFgAlpha()(Code)
Get the foreground alpha (transparency, 0 ~ 255, opacue).



getIntHeight
public int getIntHeight()(Code)
Get the chart int width in pixel; to be used by the derived subclass.



getIntWidth
public int getIntWidth()(Code)
Get the chart int width in pixel; to be used by the derived subclass.



getModel
public ChartModel getModel()(Code)
Returns the chart model associated with this chart, or null if this chart is not associated with any chart data model.



getOrient
public String getOrient()(Code)
Get the chart orientation (vertical or horizontal)



getPaneAlpha
public int getPaneAlpha()(Code)
Get the pane alpha (transparency, 0 ~ 255, opacue).



getPaneColor
public String getPaneColor()(Code)
Get the pane color of the chart (in string as #RRGGBB). null means default.



getPaneRGB
public int[] getPaneRGB()(Code)
Get the pane color in int array (0: red, 1: green, 2:blue). null means default.



getPeriod
public String getPeriod()(Code)
Returns the period used in Time Series Chart. The value can be "millisecond", "second", "minute", "hour", "day", "week", "month", "quarter", and "year". default is "millisecond" if not specified.



getTimeZone
public TimeZone getTimeZone()(Code)
Returns the time zone that this Time Series Chart belongs to, or null if the default time zone is used.

The default time zone is determined by org.zkoss.util.TimeZones.getCurrent .




getTitle
public String getTitle()(Code)
Get the chart's title.



getType
public String getType()(Code)
Get the chart's type.



getXAxis
public String getXAxis()(Code)
Get the label in xAxis.



getYAxis
public String getYAxis()(Code)
Get the label in yAxis.



isShowLegend
public boolean isShowLegend()(Code)
Check whether show the legend of the chart.



isShowTooltiptext
public boolean isShowTooltiptext()(Code)
Check whether show the tooltiptext.



isThreeD
public boolean isThreeD()(Code)
Whether a 3d chart.



newChartEngine
protected ChartEngine newChartEngine() throws UiException(Code)
Instantiates the default chart engine. It is called, if Chart.setEngine is not called with non-null engine.

By default, it looks up the component attribute called chart-engine. If found, the value is assumed to be the class or the class name of the default engine (it must implement ChartEngine ). If not found, UiException is thrown.

Derived class might override this method to provide your own default class.
exception:
  UiException - if failed to instantiate the engine
since:
   3.0.0




setAreaListener
public void setAreaListener(ChartAreaListener listener)(Code)
Sets the renderer which is used to render each area.

Note: changing a render will not cause the chart to re-render. If you want it to re-render, you could call smartDraw.
Parameters:
  listener - the area listener, or null to ignore it.
exception:
  UiException - if failed to initialize.




setAreaListener
public void setAreaListener(String clsnm) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, java.lang.reflect.InvocationTargetException(Code)
Sets the renderer by use of a class name. It creates an instance automatically.



setBgAlpha
public void setBgAlpha(int alpha)(Code)
Set the background alpha (transparency, 0 ~ 255).
Parameters:
  alpha - the transparency of background color (0 ~ 255, default to 255 opaque).



setBgColor
public void setBgColor(String color)(Code)
Set the background color of the chart.
Parameters:
  color - in #RRGGBB format (hexdecimal).



setEngine
public void setEngine(ChartEngine engine)(Code)
Sets the chart engine.



setEngine
public void setEngine(String clsnm) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, java.lang.reflect.InvocationTargetException(Code)
Sets the chart engine by use of a class name. It creates an instance automatically.



setFgAlpha
public void setFgAlpha(int alpha)(Code)
Set the foreground alpha (transparency, 0 ~ 255).
Parameters:
  alpha - the transparency of foreground color (0 ~ 255, default to 255 opaque).



setHeight
public void setHeight(String h)(Code)
Override super class to prepare the int height.



setModel
public void setModel(ChartModel model)(Code)
Sets the chart model associated with this chart. If a non-null model is assigned, no matter whether it is the same as the previous, it will always cause re-render.
Parameters:
  model - the chart model to associate, or null to dis-associateany previous model.
exception:
  UiException - if failed to initialize with the model



setModel
public void setModel(String clsnm) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException, java.lang.reflect.InvocationTargetException(Code)
Sets the model by use of a class name. It creates an instance automatically.



setOrient
public void setOrient(String orient)(Code)
Set the chart orientation.
Parameters:
  orient - vertical or horizontal (default to vertical)



setPaneAlpha
public void setPaneAlpha(int alpha)(Code)
Set the pane alpha (transparency, 0 ~ 255).
Parameters:
  alpha - the transparency of pane color (0 ~ 255, default to 255 opaque).



setPaneColor
public void setPaneColor(String color)(Code)
Set the pane color of the chart.
Parameters:
  color - in #RRGGBB format (hexdecimal).



setPeriod
public void setPeriod(String period)(Code)
Sets the period used in Time Series Chart. The value can be "millisecond", "second", "minute", "hour", "day", "week", "month", "quarter", and "year".



setShowLegend
public void setShowLegend(boolean showLegend)(Code)
whether show the chart's legend.
Parameters:
  showLegend - true if want to show the legend (default to true).



setShowTooltiptext
public void setShowTooltiptext(boolean showTooltiptext)(Code)
whether show the chart's tooltip.
Parameters:
  showTooltiptext - true if want to pop the tooltiptext (default to true).



setThreeD
public void setThreeD(boolean b)(Code)
Set true to show three dimensional graph (If a type of chart got no 3d peer, this is ignored).



setTimeZone
public void setTimeZone(TimeZone tzone)(Code)
Sets the time zone that this Time Series Chart belongs to, or null if the default time zone is used.

The default time zone is determined by org.zkoss.util.TimeZones.getCurrent .




setTitle
public void setTitle(String title)(Code)
Set the chart's title.
Parameters:
  title - the chart's title.



setType
public void setType(String type)(Code)
Set the chart's type (Chart.PIE, Chart.BAR, Chart.LINE, etc.).

Default: pie.




setWidth
public void setWidth(String w)(Code)
Override super class to prepare the int width.



setXAxis
public void setXAxis(String label)(Code)
Set the label in xAxis.
Parameters:
  label - label in xAxis.



setYAxis
public void setYAxis(String label)(Code)
Set the label in yAxis.
Parameters:
  label - label in yAxis.



smartDrawChart
protected void smartDrawChart()(Code)
mark a draw flag to inform that this Chart needs update.



stringToInt
static int stringToInt(String str)(Code)



Methods inherited from org.zkoss.zul.Imagemap
public String getOuterAttrs()(Code)(Java Doc)
public boolean insertBefore(Component newChild, Component refChild)(Code)(Java Doc)
public boolean isChildable()(Code)(Java Doc)

Methods inherited from org.zkoss.zul.Image
public String getAlign()(Code)(Java Doc)
public String getBorder()(Code)(Java Doc)
public org.zkoss.image.Image getContent()(Code)(Java Doc)
public String getHspace()(Code)(Java Doc)
public String getInnerAttrs()(Code)(Java Doc)
public String getOuterAttrs()(Code)(Java Doc)
public String getSrc()(Code)(Java Doc)
public String getVspace()(Code)(Java Doc)
public boolean isChildable()(Code)(Java Doc)
protected Object newExtraCtrl()(Code)(Java Doc)
public void setAlign(String align)(Code)(Java Doc)
public void setBorder(String border)(Code)(Java Doc)
public void setContent(org.zkoss.image.Image image)(Code)(Java Doc)
public void setHspace(String hspace)(Code)(Java Doc)
public void setSrc(String src)(Code)(Java Doc)
public void setVspace(String vspace)(Code)(Java Doc)
public void smartUpdate(String attr, String value)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.