Java Doc for ChartPortlet.java in  » Portal » stringbeans-3.5 » com » nabhinc » portlet » chart » 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 » Portal » stringbeans 3.5 » com.nabhinc.portlet.chart 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.nabhinc.portlet.base.BasePortlet
   com.nabhinc.portlet.chart.ChartPortlet

ChartPortlet
public class ChartPortlet extends BasePortlet (Code)

author:
   Padmanabh Dabke
author:
   (c) 2002 Nabh Information Systems, Inc. All Rights Reserved.


Field Summary
final public static  StringBG_ALPHA
     Parameter name for chart's background alpha.
final public static  StringBG_IMAGE_ALPHA
     Parameter name for chart's background image alpha.
final public static  StringBG_IMAGE_PATH
     Parameter name for chart's background image (relative) path.
final public static  StringBG_IMAGE_URL
     Parameter name for chart's background image URL.
final public static  StringBORDER_COLOR
     Parameter name for chart's border color.
final public static  StringCHART_ASPECT_RATIO
     Parameter name for chart's aspect ratio.
final public static  StringCHART_BG_COLOR
     Parameter name for chart's background color.
final public static  StringCHART_COLORS
     Parameter name for chart's colors.
final public static  StringCHART_TITLE
     Parameter name for chart's title.
final public static  StringCHART_TYPE
     Parameter name for chart's type.
final public static  String[]CHART_TYPES
    
final public static  ListCHART_TYPE_LIST
    
final public static  StringCIRCULAR_SHAPE
     circular is one of the possible values for pieChartShape.
final public static  StringDATA_SOURCE_CLASS
     Parameter name for the dataset class used for creating the specific type of the chart.
final public static  intDEFAULT_MAXIMIZED_WINDOW_HEIGHT
    
final public static  intDEFAULT_MAXIMIZED_WINDOW_WIDTH
    
final public static  intDEFAULT_NORMAL_WINDOW_HEIGHT
    
final public static  intDEFAULT_NORMAL_WINDOW_WIDTH
    
final public static  StringFG_ALPHA
     Parameter name for the chart's foreground alpha.
final public static  StringFONT_SIZE
     Parameter name for font size.
final public static  StringFONT_TYPE
     Parameter name for font type.
final public static  StringIMAGE_TYPE
     Name for chart's image type.
final public static  StringJPG_IMAGE_TYPE
     One of the supported value for imageType parameter.
final public static  StringMAXIMIZED_CHART_HEIGHT
     Parameter name for chart's height.
final public static  StringMAXIMIZED_CHART_WIDTH
     Parameter name for chart's width.
final public static  StringNAME_LABEL_TYPE
     name is one of possible values for pieLabelType.
final public static  StringNAME_PERCENT_LABEL_TYPE
     name-percent is one of possible values for pieLabelType.
final public static  StringNAME_VALUE_LABEL_TYPE
     name-value is one of possible values for pieLabelType.
final public static  StringNORMAL_CHART_HEIGHT
     Parameter name for chart's height.
final public static  StringNORMAL_CHART_WIDTH
     Parameter name for chart's width.
final public static  StringNO_LABEL_TYPE
     none is one of pieLabelType's value.
final public static  StringOVAL_SHAPE
     oval is one of the possible value for pieChartShape.
final public static  StringPERCENT_LABEL_TYPE
     percent is one of possible values for pieLabelType.
final public static  StringPIE_CHART_SHAPE
     Parameter name for pie chart's shape.
final public static  StringPIE_DEPTH_FACTOR
     Parameter name for pie3D's depth factor.
final public static  StringPIE_GAP
     Parameter name for pie's gap.
final public static  StringPIE_LABEL_TYPE
     Parameter name for pie chart's label type.
final public static  StringPNG_IMAGE_TYPE
     One of the supported value for imageType parameter.
final public static  StringPORTLET_WIDTH_ATTRIB
    
final public static  StringSHOW_BORDER
     Parameter name for showing chart's border.
final public static  StringSHOW_LEGEND
     Parameter name for showing legend.
final public static  StringVALUE_LABEL_TYPE
     value is one of possible values for pieLabelType.
final public static  StringVALUE_PERCENT_LABEL_TYPE
     value-percent is one of possible values for pieLabelType.
final public static  StringX_AXIS_TITLE
     Parameter name for X axis title.
final public static  StringY_AXIS_TITLE
     Parameter name for Y axis title.

Constructor Summary
public  ChartPortlet()
     Do nothing constructor.

Method Summary
public  voiddoView(RenderRequest request, RenderResponse response)
    
final public static  intgetChartTypeConstant(String type)
    
public  voidinit(PortletConfig config)
     Initializes the chart portlet.
public  voidsetBackgroundColor(String bgColor)
    
public  voidsetChartColors(String chartColor)
    

Field Detail
BG_ALPHA
final public static String BG_ALPHA(Code)
Parameter name for chart's background alpha.



BG_IMAGE_ALPHA
final public static String BG_IMAGE_ALPHA(Code)
Parameter name for chart's background image alpha.



BG_IMAGE_PATH
final public static String BG_IMAGE_PATH(Code)
Parameter name for chart's background image (relative) path. bgImagePath's value defines the relative (to the context)path of the image file.



BG_IMAGE_URL
final public static String BG_IMAGE_URL(Code)
Parameter name for chart's background image URL. bgImageURL is optional.



BORDER_COLOR
final public static String BORDER_COLOR(Code)
Parameter name for chart's border color. The value of this parameter name can be the static color constant defined in class java.awt.Color or hexadecimal number, prefixed by #. This parameter only works if showBorder's value is true.



CHART_ASPECT_RATIO
final public static String CHART_ASPECT_RATIO(Code)
Parameter name for chart's aspect ratio. The chartAspectRatio's value defines the ratio of the height to the width of the chart. Optional



CHART_BG_COLOR
final public static String CHART_BG_COLOR(Code)
Parameter name for chart's background color. The value of this parameter name can be the static color constant defined in class java.awt.Color or hexadecimal number, prefixed by #.



CHART_COLORS
final public static String CHART_COLORS(Code)
Parameter name for chart's colors. The value of this parameter name can be the static color constant defined in class java.awt.Color or hexadecimal number, prefixed by #. Each color name or hex number is separated by a comma (",").



CHART_TITLE
final public static String CHART_TITLE(Code)
Parameter name for chart's title. chartTitle is optional.



CHART_TYPE
final public static String CHART_TYPE(Code)
Parameter name for chart's type. If chartType is not defined, the default line type will be used.



CHART_TYPES
final public static String[] CHART_TYPES(Code)



CHART_TYPE_LIST
final public static List CHART_TYPE_LIST(Code)



CIRCULAR_SHAPE
final public static String CIRCULAR_SHAPE(Code)
circular is one of the possible values for pieChartShape.



DATA_SOURCE_CLASS
final public static String DATA_SOURCE_CLASS(Code)
Parameter name for the dataset class used for creating the specific type of the chart. In the future, the dataset class will be map to the specified chart's type, so that it does not need to be specified explicitly. For now, dataSourceClass is required.



DEFAULT_MAXIMIZED_WINDOW_HEIGHT
final public static int DEFAULT_MAXIMIZED_WINDOW_HEIGHT(Code)



DEFAULT_MAXIMIZED_WINDOW_WIDTH
final public static int DEFAULT_MAXIMIZED_WINDOW_WIDTH(Code)



DEFAULT_NORMAL_WINDOW_HEIGHT
final public static int DEFAULT_NORMAL_WINDOW_HEIGHT(Code)



DEFAULT_NORMAL_WINDOW_WIDTH
final public static int DEFAULT_NORMAL_WINDOW_WIDTH(Code)



FG_ALPHA
final public static String FG_ALPHA(Code)
Parameter name for the chart's foreground alpha.



FONT_SIZE
final public static String FONT_SIZE(Code)
Parameter name for font size. fontSize is optional and if specified will take affect of chart's title, x and y axis title, and legend's label.



FONT_TYPE
final public static String FONT_TYPE(Code)
Parameter name for font type. fontType is optional and if specified will take affect of chart's title, x and y axis title, and legend's label.



IMAGE_TYPE
final public static String IMAGE_TYPE(Code)
Name for chart's image type. imageType is optional.



JPG_IMAGE_TYPE
final public static String JPG_IMAGE_TYPE(Code)
One of the supported value for imageType parameter. image/JPG is for JPG type of chart image.



MAXIMIZED_CHART_HEIGHT
final public static String MAXIMIZED_CHART_HEIGHT(Code)
Parameter name for chart's height. maximizedChartHeight is optional.



MAXIMIZED_CHART_WIDTH
final public static String MAXIMIZED_CHART_WIDTH(Code)
Parameter name for chart's width. maximizedChartWidth is optional.



NAME_LABEL_TYPE
final public static String NAME_LABEL_TYPE(Code)
name is one of possible values for pieLabelType.



NAME_PERCENT_LABEL_TYPE
final public static String NAME_PERCENT_LABEL_TYPE(Code)
name-percent is one of possible values for pieLabelType.



NAME_VALUE_LABEL_TYPE
final public static String NAME_VALUE_LABEL_TYPE(Code)
name-value is one of possible values for pieLabelType.



NORMAL_CHART_HEIGHT
final public static String NORMAL_CHART_HEIGHT(Code)
Parameter name for chart's height. normalChartHeight is optional.



NORMAL_CHART_WIDTH
final public static String NORMAL_CHART_WIDTH(Code)
Parameter name for chart's width. normalChartWidth is optional.



NO_LABEL_TYPE
final public static String NO_LABEL_TYPE(Code)
none is one of pieLabelType's value.



OVAL_SHAPE
final public static String OVAL_SHAPE(Code)
oval is one of the possible value for pieChartShape.



PERCENT_LABEL_TYPE
final public static String PERCENT_LABEL_TYPE(Code)
percent is one of possible values for pieLabelType.



PIE_CHART_SHAPE
final public static String PIE_CHART_SHAPE(Code)
Parameter name for pie chart's shape. pieChartShape is optional and specific to the pie or pie3D chart types.



PIE_DEPTH_FACTOR
final public static String PIE_DEPTH_FACTOR(Code)
Parameter name for pie3D's depth factor. pieDepthFactor is optional and specific to pie3D chart type only.



PIE_GAP
final public static String PIE_GAP(Code)
Parameter name for pie's gap. pieGap is optional and specific to pie and pie3d chart types.



PIE_LABEL_TYPE
final public static String PIE_LABEL_TYPE(Code)
Parameter name for pie chart's label type. pieLabelType is optional and specific to the pie or pie3D chart types.



PNG_IMAGE_TYPE
final public static String PNG_IMAGE_TYPE(Code)
One of the supported value for imageType parameter. image/PNG is the default image type.



PORTLET_WIDTH_ATTRIB
final public static String PORTLET_WIDTH_ATTRIB(Code)



SHOW_BORDER
final public static String SHOW_BORDER(Code)
Parameter name for showing chart's border. The value of showBorder is either true or false. The border's color can be set using borderColor parameter.



SHOW_LEGEND
final public static String SHOW_LEGEND(Code)
Parameter name for showing legend. showLegend is optional.



VALUE_LABEL_TYPE
final public static String VALUE_LABEL_TYPE(Code)
value is one of possible values for pieLabelType.



VALUE_PERCENT_LABEL_TYPE
final public static String VALUE_PERCENT_LABEL_TYPE(Code)
value-percent is one of possible values for pieLabelType.



X_AXIS_TITLE
final public static String X_AXIS_TITLE(Code)
Parameter name for X axis title. xAxisTitle is optional.



Y_AXIS_TITLE
final public static String Y_AXIS_TITLE(Code)
Parameter name for Y axis title. yAxisTitle is optional.




Constructor Detail
ChartPortlet
public ChartPortlet()(Code)
Do nothing constructor.




Method Detail
doView
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)



getChartTypeConstant
final public static int getChartTypeConstant(String type) throws PortletException(Code)



init
public void init(PortletConfig config) throws PortletException(Code)
Initializes the chart portlet. The following XML elements are expected:

  • URL of the RSS / RDF file
  • refresh (Optional) - Refresh period used to fetch newer version of the RSS file specified in minutes. Defaults is 24 hours.
  • max-items (Optional) - Maximum number of headlines to display. Default is 15.



setBackgroundColor
public void setBackgroundColor(String bgColor)(Code)



setChartColors
public void setChartColors(String chartColor)(Code)



Fields inherited from com.nabhinc.portlet.base.BasePortlet
final public static String ADMIN_JSP_PARAM(Code)(Java Doc)
final public static PortletMode ADMIN_MODE(Code)(Java Doc)
final public static String CONFIG_JSP_PARAM(Code)(Java Doc)
final public static PortletMode CONFIG_MODE(Code)(Java Doc)
final public static String CONTENT_JSP_PARAM(Code)(Java Doc)
final public static String EDIT_JSP_PARAM(Code)(Java Doc)
final public static String HELP_JSP_PARAM(Code)(Java Doc)
final public static String PREVIEW_JSP_PARAM(Code)(Java Doc)
final public static PortletMode PREVIEW_MODE(Code)(Java Doc)
final public static String ROOT_DIR_PARAM(Code)(Java Doc)
protected PortletContext bpContext(Code)(Java Doc)
protected Logger bpLogger(Code)(Java Doc)

Methods inherited from com.nabhinc.portlet.base.BasePortlet
public void debug(String method, String msg)(Code)(Java Doc)
public void doAdmin(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)(Java Doc)
public void doConfig(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)(Java Doc)
protected void doDispatch(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code)(Java Doc)
public void doEdit(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)(Java Doc)
public void doHelp(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)(Java Doc)
public void doPreview(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)(Java Doc)
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException(Code)(Java Doc)
public void error(String method, String msg)(Code)(Java Doc)
protected String getAdminJSP(RenderRequest request) throws PortletException(Code)(Java Doc)
protected String getConfigJSP(RenderRequest request) throws PortletException(Code)(Java Doc)
protected String getContentJSP(RenderRequest request) throws PortletException(Code)(Java Doc)
protected String getEditJSP(RenderRequest request) throws PortletException(Code)(Java Doc)
protected String getHelpJSP(RenderRequest request) throws PortletException(Code)(Java Doc)
protected String getLocalizedJSP(Locale locale, String path)(Code)(Java Doc)
protected String getPreviewJSP(RenderRequest request) throws PortletException(Code)(Java Doc)
protected String getRealPath(PortletContext pContext, String relPath)(Code)(Java Doc)
public void info(String method, String msg)(Code)(Java Doc)
public void init(PortletConfig config) throws PortletException(Code)(Java Doc)
public void warning(String method, String msg)(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.