Java Doc for EnhancedChartComponent.java in  » Report » openi » org » openi » 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 » Report » openi » org.openi.chart 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.openi.chart.EnhancedChartComponent

EnhancedChartComponent
public class EnhancedChartComponent extends ChartComponent implements ModelChangeListener(Code)
Started as an exact copy of com.tonbeller.jpivot.chart.ChartComponent. Needed to enhance the render functionality to handle different series colors and palettes. There was no way to overload, override that functionality without copying a significant amount of the class, so here is a complete copy. Will likely evolve into something quite different.

Inner Class :public class jpivotPieURLGenerator extends StandardPieURLGenerator
Inner Class :public class jpivotCategoryURLGenerator extends StandardCategoryURLGenerator
Inner Class :class DrillThroughHandler implements RequestListener

Field Summary
protected  StringCHART_SERVLET
    
final  StringCHART_SERVLET_KEY
    
final public static  intDEFAULT_CHART_HEIGHT
    
final public static  intDEFAULT_CHART_WIDTH
    
final static  doubleDEFAULT_LEGEND_WIDTH
    
protected  StringaxisFontName
    
protected  intaxisFontSize
    
protected  intaxisFontStyle
    
protected  StringaxisTickFontName
    
protected  intaxisTickFontSize
    
protected  intaxisTickFontStyle
    
protected  intbgColorB
    
protected  intbgColorG
    
protected  intbgColorR
    
protected  intchartHeight
    
protected  StringchartTitle
    
protected  intchartType
    
protected  intchartWidth
    
protected  intcolCount
    
protected  ListcolorPalette
    
protected  booleandirty
    
protected  Dispatcherdispatcher
    
protected  Documentdocument
    
protected  booleandrillThroughEnabled
    
protected  Stringfilename
    
protected  StringfontName
    
protected  intfontSize
    
protected  intfontStyle
    
protected  doubleforegroundAlpha
    
protected  StringhorizAxisLabel
    
protected  ChartRenderingInfoinfo
    
protected  StringlegendFontName
    
protected  intlegendFontSize
    
protected  intlegendFontStyle
    
protected  intlegendPosition
    
protected  Localelocale
    
protected  OlapModelolapModel
    
protected  Stringref
    
protected  ElementrootElement
    
protected  booleanshowLegend
    
protected  booleanshowPareto
    
protected  booleanshowSlicer
    
protected  booleanshowTooltips
    
protected  intslicerAlignment
    
protected  StringslicerFontName
    
protected  intslicerFontSize
    
protected  intslicerFontStyle
    
protected  intslicerPosition
    
protected  inttickLabelRotate
    
protected  java.awt.FonttitleFont
    
protected  booleanuseChartSize
    
protected  StringvertAxisLabel
    

Constructor Summary
public  EnhancedChartComponent(String id, Component parent, String ref, RequestContext context)
    

Method Summary
protected  booleancanDrillThrough(Cell cell)
    
protected  TableModeldrillThrough(Cell cell)
    
public  StringgetAxisFontName()
    
public  intgetAxisFontSize()
    
public  intgetAxisFontStyle()
    
public  StringgetAxisTickFontName()
    
public  intgetAxisTickFontSize()
    
public  intgetAxisTickFontStyle()
    
public  intgetBgColorB()
    
public  intgetBgColorG()
    
public  intgetBgColorR()
    
public  intgetChartHeight()
    
public  StringgetChartTitle()
    
public  intgetChartType()
    
public  intgetChartWidth()
    
public  intgetColCount()
    
public  ListgetColorPalette()
    
public  StringgetFilename()
    
public  StringgetFontName()
    
public  intgetFontSize()
    
public  intgetFontStyle()
    
public  doublegetForegroundAlpha()
    
public  StringgetHorizAxisLabel()
    
public  StringgetLegendFontName()
    
public  intgetLegendFontSize()
    
public  intgetLegendFontStyle()
    
public  intgetLegendPosition()
    
public  OlapModelgetOlapModel()
    
public  booleangetShowLegend()
    
public  booleangetShowPareto()
    
public  intgetSlicerAlignment()
    
public  StringgetSlicerFontName()
    
public  intgetSlicerFontSize()
    
public  intgetSlicerFontStyle()
    
public  intgetSlicerPosition()
    
public  intgetTickLabelRotate()
    
public  StringgetVertAxisLabel()
    
public  booleangetWriteImageMap()
    
public  voidinitialize(RequestContext context)
    
public  booleanisDirty()
    
public  booleanisDrillThroughEnabled()
    
public  booleanisShowSlicer()
    
public  booleanisUseChartSize()
    
public  voidmodelChanged(ModelChangeEvent e)
    
public  Documentrender(RequestContext context)
     Entry point for producing charts, called by wcf render tag.
public  voidsetAxisFontName(String axisFontName)
    
public  voidsetAxisFontSize(int axisFontSize)
    
public  voidsetAxisFontStyle(int axisFontStyle)
    
public  voidsetAxisTickFontName(String axisTickFontName)
    
public  voidsetAxisTickFontSize(int axisTickFontSize)
    
public  voidsetAxisTickFontStyle(int axisTickFontStyle)
    
public  voidsetBgColorB(int bgColorB)
    
public  voidsetBgColorG(int bgColorG)
    
public  voidsetBgColorR(int bgColorR)
    
public  voidsetChartHeight(int chartHeight)
    
public  voidsetChartTitle(String chartTitle)
    
public  voidsetChartType(int chartType)
    
public  voidsetChartWidth(int chartWidth)
    
public  voidsetColorPalette(List seriesPalette)
    
public  voidsetDirty(boolean dirty)
    
public  voidsetDrillThroughEnabled(boolean drillThroughEnabled)
    
public  voidsetFontName(String fontname)
    
public  voidsetFontSize(int fontSize)
    
public  voidsetFontStyle(int fontStyle)
    
public  voidsetForegroundAlpha(double foregroundAlpha)
    
public  voidsetHorizAxisLabel(String axisLabel)
    
public  voidsetLegendFontName(String legendFontName)
    
public  voidsetLegendFontSize(int legendFontSize)
    
public  voidsetLegendFontStyle(int legendFontStyle)
    
public  voidsetLegendPosition(int legendPosition)
    
public  voidsetOlapModel(OlapModel olapModel)
    
public  voidsetShowLegend(boolean showLegend)
    
public  voidsetShowPareto(boolean showPareto)
    
public  voidsetShowSlicer(boolean showSlicer)
    
public  voidsetSlicerAlignment(int slicerAlignment)
    
public  voidsetSlicerFontName(String slicerFontName)
    
public  voidsetSlicerFontSize(int slicerFontSize)
    
public  voidsetSlicerFontStyle(int slicerFontStyle)
    
public  voidsetSlicerPosition(int slicerPosition)
    
public  voidsetTickLabelRotate(int tickLabelRotate)
    
public  voidsetUseChartSize(boolean useChartSize)
    
public  voidsetVertAxisLabel(String axisLabel)
    
public  voidsetWriteImageMap(boolean writeImageMap)
    
public  voidstructureChanged(ModelChangeEvent e)
    
public  StringwriteImageMap(String name, ChartRenderingInfo info, boolean useOverLibForToolTips)
     Writes an image map as a String This function has been requested to be added to jfreechart Also requires slight change to ChartEntity.getImageMapAreaTag() to produce valid xml tag and use & entity in urls.

Field Detail
CHART_SERVLET
protected String CHART_SERVLET(Code)



CHART_SERVLET_KEY
final String CHART_SERVLET_KEY(Code)



DEFAULT_CHART_HEIGHT
final public static int DEFAULT_CHART_HEIGHT(Code)



DEFAULT_CHART_WIDTH
final public static int DEFAULT_CHART_WIDTH(Code)



DEFAULT_LEGEND_WIDTH
final static double DEFAULT_LEGEND_WIDTH(Code)



axisFontName
protected String axisFontName(Code)



axisFontSize
protected int axisFontSize(Code)



axisFontStyle
protected int axisFontStyle(Code)



axisTickFontName
protected String axisTickFontName(Code)



axisTickFontSize
protected int axisTickFontSize(Code)



axisTickFontStyle
protected int axisTickFontStyle(Code)



bgColorB
protected int bgColorB(Code)



bgColorG
protected int bgColorG(Code)



bgColorR
protected int bgColorR(Code)



chartHeight
protected int chartHeight(Code)



chartTitle
protected String chartTitle(Code)



chartType
protected int chartType(Code)



chartWidth
protected int chartWidth(Code)



colCount
protected int colCount(Code)



colorPalette
protected List colorPalette(Code)



dirty
protected boolean dirty(Code)



dispatcher
protected Dispatcher dispatcher(Code)



document
protected Document document(Code)



drillThroughEnabled
protected boolean drillThroughEnabled(Code)



filename
protected String filename(Code)



fontName
protected String fontName(Code)



fontSize
protected int fontSize(Code)



fontStyle
protected int fontStyle(Code)



foregroundAlpha
protected double foregroundAlpha(Code)



horizAxisLabel
protected String horizAxisLabel(Code)



info
protected ChartRenderingInfo info(Code)



legendFontName
protected String legendFontName(Code)



legendFontSize
protected int legendFontSize(Code)



legendFontStyle
protected int legendFontStyle(Code)



legendPosition
protected int legendPosition(Code)



locale
protected Locale locale(Code)



olapModel
protected OlapModel olapModel(Code)



ref
protected String ref(Code)



rootElement
protected Element rootElement(Code)



showLegend
protected boolean showLegend(Code)



showPareto
protected boolean showPareto(Code)



showSlicer
protected boolean showSlicer(Code)



showTooltips
protected boolean showTooltips(Code)



slicerAlignment
protected int slicerAlignment(Code)



slicerFontName
protected String slicerFontName(Code)



slicerFontSize
protected int slicerFontSize(Code)



slicerFontStyle
protected int slicerFontStyle(Code)



slicerPosition
protected int slicerPosition(Code)



tickLabelRotate
protected int tickLabelRotate(Code)



titleFont
protected java.awt.Font titleFont(Code)



useChartSize
protected boolean useChartSize(Code)



vertAxisLabel
protected String vertAxisLabel(Code)




Constructor Detail
EnhancedChartComponent
public EnhancedChartComponent(String id, Component parent, String ref, RequestContext context)(Code)
Constructor
Parameters:
  id - the id of this component
Parameters:
  ref - a reference to an olap model




Method Detail
canDrillThrough
protected boolean canDrillThrough(Cell cell)(Code)



drillThrough
protected TableModel drillThrough(Cell cell)(Code)
returns a DrillThroughTableModel for the drill through
Parameters:
  cell -



getAxisFontName
public String getAxisFontName()(Code)



getAxisFontSize
public int getAxisFontSize()(Code)



getAxisFontStyle
public int getAxisFontStyle()(Code)



getAxisTickFontName
public String getAxisTickFontName()(Code)



getAxisTickFontSize
public int getAxisTickFontSize()(Code)



getAxisTickFontStyle
public int getAxisTickFontStyle()(Code)



getBgColorB
public int getBgColorB()(Code)



getBgColorG
public int getBgColorG()(Code)



getBgColorR
public int getBgColorR()(Code)



getChartHeight
public int getChartHeight()(Code)



getChartTitle
public String getChartTitle()(Code)



getChartType
public int getChartType()(Code)



getChartWidth
public int getChartWidth()(Code)



getColCount
public int getColCount()(Code)



getColorPalette
public List getColorPalette()(Code)
Returns the colorPalette.



getFilename
public String getFilename()(Code)



getFontName
public String getFontName()(Code)



getFontSize
public int getFontSize()(Code)



getFontStyle
public int getFontStyle()(Code)



getForegroundAlpha
public double getForegroundAlpha()(Code)



getHorizAxisLabel
public String getHorizAxisLabel()(Code)



getLegendFontName
public String getLegendFontName()(Code)



getLegendFontSize
public int getLegendFontSize()(Code)



getLegendFontStyle
public int getLegendFontStyle()(Code)



getLegendPosition
public int getLegendPosition()(Code)



getOlapModel
public OlapModel getOlapModel()(Code)



getShowLegend
public boolean getShowLegend()(Code)



getShowPareto
public boolean getShowPareto()(Code)
Returns the generatePareto.



getSlicerAlignment
public int getSlicerAlignment()(Code)



getSlicerFontName
public String getSlicerFontName()(Code)



getSlicerFontSize
public int getSlicerFontSize()(Code)



getSlicerFontStyle
public int getSlicerFontStyle()(Code)



getSlicerPosition
public int getSlicerPosition()(Code)



getTickLabelRotate
public int getTickLabelRotate()(Code)
Returns the tickLabelRotate.



getVertAxisLabel
public String getVertAxisLabel()(Code)



getWriteImageMap
public boolean getWriteImageMap()(Code)
Returns the writeImageMap.



initialize
public void initialize(RequestContext context) throws Exception(Code)
called once by the creating tag



isDirty
public boolean isDirty()(Code)
true means that render() will create a new chart



isDrillThroughEnabled
public boolean isDrillThroughEnabled()(Code)



isShowSlicer
public boolean isShowSlicer()(Code)



isUseChartSize
public boolean isUseChartSize()(Code)



modelChanged
public void modelChanged(ModelChangeEvent e)(Code)



render
public Document render(RequestContext context) throws Exception(Code)
Entry point for producing charts, called by wcf render tag. Produces a jfreechart dataset from olap model, then creates a chart and writes it to the servlet container temp directory. Returns a DOM document for Renderer to transform into html. Requires that jfreechart servlet is installed in this application context.



setAxisFontName
public void setAxisFontName(String axisFontName)(Code)

Parameters:
  axisFontName -



setAxisFontSize
public void setAxisFontSize(int axisFontSize)(Code)

Parameters:
  axisFontSize -



setAxisFontStyle
public void setAxisFontStyle(int axisFontStyle)(Code)

Parameters:
  axisFontStyle -



setAxisTickFontName
public void setAxisTickFontName(String axisTickFontName)(Code)

Parameters:
  axisTickFontName -



setAxisTickFontSize
public void setAxisTickFontSize(int axisTickFontSize)(Code)

Parameters:
  axisTickFontSize -



setAxisTickFontStyle
public void setAxisTickFontStyle(int axisTickFontStyle)(Code)

Parameters:
  axisTickFontStyle -



setBgColorB
public void setBgColorB(int bgColorB)(Code)

Parameters:
  bgColorB -



setBgColorG
public void setBgColorG(int bgColorG)(Code)

Parameters:
  bgColorG -



setBgColorR
public void setBgColorR(int bgColorR)(Code)

Parameters:
  bgColorR -



setChartHeight
public void setChartHeight(int chartHeight)(Code)

Parameters:
  chartHeight -



setChartTitle
public void setChartTitle(String chartTitle)(Code)

Parameters:
  chartTitle -



setChartType
public void setChartType(int chartType)(Code)

Parameters:
  chartType -



setChartWidth
public void setChartWidth(int chartWidth)(Code)

Parameters:
  chartWidth -



setColorPalette
public void setColorPalette(List seriesPalette)(Code)

Parameters:
  colorPalette - The colorPalette to set.



setDirty
public void setDirty(boolean dirty)(Code)



setDrillThroughEnabled
public void setDrillThroughEnabled(boolean drillThroughEnabled)(Code)



setFontName
public void setFontName(String fontname)(Code)

Parameters:
  titleFont -



setFontSize
public void setFontSize(int fontSize)(Code)

Parameters:
  fontSize -



setFontStyle
public void setFontStyle(int fontStyle)(Code)

Parameters:
  fontStyle -



setForegroundAlpha
public void setForegroundAlpha(double foregroundAlpha)(Code)



setHorizAxisLabel
public void setHorizAxisLabel(String axisLabel)(Code)

Parameters:
  axisLabel -



setLegendFontName
public void setLegendFontName(String legendFontName)(Code)

Parameters:
  legendFontName -



setLegendFontSize
public void setLegendFontSize(int legendFontSize)(Code)

Parameters:
  legendFontSize -



setLegendFontStyle
public void setLegendFontStyle(int legendFontStyle)(Code)

Parameters:
  legendFontStyle -



setLegendPosition
public void setLegendPosition(int legendPosition)(Code)

Parameters:
  legendPosition -



setOlapModel
public void setOlapModel(OlapModel olapModel)(Code)



setShowLegend
public void setShowLegend(boolean showLegend)(Code)

Parameters:
  showLegend -



setShowPareto
public void setShowPareto(boolean showPareto)(Code)

Parameters:
  generatePareto - The generatePareto to set.



setShowSlicer
public void setShowSlicer(boolean showSlicer)(Code)

Parameters:
  showSlicer -



setSlicerAlignment
public void setSlicerAlignment(int slicerAlignment)(Code)

Parameters:
  slicerAlignment -



setSlicerFontName
public void setSlicerFontName(String slicerFontName)(Code)

Parameters:
  slicerFontName -



setSlicerFontSize
public void setSlicerFontSize(int slicerFontSize)(Code)

Parameters:
  slicerFontSize -



setSlicerFontStyle
public void setSlicerFontStyle(int slicerFontStyle)(Code)

Parameters:
  slicerFontStyle -



setSlicerPosition
public void setSlicerPosition(int slicerPosition)(Code)

Parameters:
  slicerPosition -



setTickLabelRotate
public void setTickLabelRotate(int tickLabelRotate)(Code)

Parameters:
  tickLabelRotate - The tickLabelRotate to set.



setUseChartSize
public void setUseChartSize(boolean useChartSize)(Code)



setVertAxisLabel
public void setVertAxisLabel(String axisLabel)(Code)

Parameters:
  axisLabel -



setWriteImageMap
public void setWriteImageMap(boolean writeImageMap)(Code)

Parameters:
  writeImageMap - The writeImageMap to set.



structureChanged
public void structureChanged(ModelChangeEvent e)(Code)



writeImageMap
public String writeImageMap(String name, ChartRenderingInfo info, boolean useOverLibForToolTips)(Code)
Writes an image map as a String This function has been requested to be added to jfreechart Also requires slight change to ChartEntity.getImageMapAreaTag() to produce valid xml tag and use & entity in urls. Diffs sent to jfreechart project - so hopefully this will be in there soon
Parameters:
  name - the map name.
Parameters:
  info - the chart rendering info.
Parameters:
  useOverLibForToolTips - whether to use OverLIB for tooltips(http://www.bosrup.com/web/overlib/).



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