Java Doc for JFreeChartEngine.java in  » Report » pentaho-report » org » pentaho » plugin » jfreechart » 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 » pentaho report » org.pentaho.plugin.jfreechart 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.pentaho.plugin.jfreechart.JFreeChartEngine

JFreeChartEngine
public class JFreeChartEngine (Code)


Field Summary
final public static  intAREA_CHART_TYPE
    
final public static  intBAR_CHART_TYPE
    
final public static  intBAR_LINE_CHART_TYPE
    
final public static  intBUBBLE_CHART_TYPE
    
final public static  intDIAL_CHART_TYPE
    
final public static  intDIFFERENCE_CHART_TYPE
    
final public static  intDOT_CHART_TYPE
    
final public static  intLINE_CHART_TYPE
    
final public static  intOUTPUT_CHART
    
final public static  intOUTPUT_PNG
    
final public static  intOUTPUT_PNG_BYTES
    
final public static  intOUTPUT_SVG
    
final public static  intPIE_CHART_TYPE
    
final public static  intPIE_GRID_CHART_TYPE
    
final public static  intSTEP_AREA_CHART_TYPE
    
final public static  intSTEP_CHART_TYPE
    
final public static  intTHERMOMETER_CHART_TYPE
    
final public static  intUNDEFINED_CHART_TYPE
    


Method Summary
public static  JFreeChartgetChart(Dataset dataset, String title, String units, int width, int height, ILogger logger)
     Create a chart-object using dataset object.
public static  intgetChartType(String typeStr)
    
public static  StringgetChartTypeName(int type)
    
public static  ColorgetColor(String htmlColor)
    
public static  FontgetFont(Node fontNode)
    
public static  PaintgetGradientPaint(Node gradientNode, int width, int height)
    
public static  ImagegetImage(Node chartBackgroundImageNode, IPentahoSession session)
    
public static  ImagegetImage(String imageName, IPentahoSession session)
    
public static  StrokegetLineStyleStroke(String lineStyle, float lineWidth)
    
public static  PaintgetPaint(Node node, int width, int height, IPentahoSession session)
    
public static  PaintgetPaint(Node node)
    
public static  PaintgetPaint(String htmlColor)
    
public static  PaintgetTexturePaint(Node textureNode, int width, int height, IPentahoSession session)
    
public static  ColorgetTransparent()
    
public static  booleanisBarColumn(String[] barColumns, String columnName)
    
public static  booleanisLineColumn(String[] lineColumns, String columnName)
    
public static  voidsaveChart(Dataset dataset, String title, String units, String fileName, int width, int height, int outputType, PrintWriter writer, ILogger logger)
     Create an image file using dataset object.
public static  voidsaveChart(Dataset dataset, String title, String units, String fileName, int width, int height, int outputType, PrintWriter writer, ChartRenderingInfo info, ILogger logger)
     Create an image file using dataset object.

Field Detail
AREA_CHART_TYPE
final public static int AREA_CHART_TYPE(Code)



BAR_CHART_TYPE
final public static int BAR_CHART_TYPE(Code)



BAR_LINE_CHART_TYPE
final public static int BAR_LINE_CHART_TYPE(Code)



BUBBLE_CHART_TYPE
final public static int BUBBLE_CHART_TYPE(Code)



DIAL_CHART_TYPE
final public static int DIAL_CHART_TYPE(Code)



DIFFERENCE_CHART_TYPE
final public static int DIFFERENCE_CHART_TYPE(Code)



DOT_CHART_TYPE
final public static int DOT_CHART_TYPE(Code)



LINE_CHART_TYPE
final public static int LINE_CHART_TYPE(Code)



OUTPUT_CHART
final public static int OUTPUT_CHART(Code)



OUTPUT_PNG
final public static int OUTPUT_PNG(Code)



OUTPUT_PNG_BYTES
final public static int OUTPUT_PNG_BYTES(Code)



OUTPUT_SVG
final public static int OUTPUT_SVG(Code)



PIE_CHART_TYPE
final public static int PIE_CHART_TYPE(Code)



PIE_GRID_CHART_TYPE
final public static int PIE_GRID_CHART_TYPE(Code)



STEP_AREA_CHART_TYPE
final public static int STEP_AREA_CHART_TYPE(Code)



STEP_CHART_TYPE
final public static int STEP_CHART_TYPE(Code)



THERMOMETER_CHART_TYPE
final public static int THERMOMETER_CHART_TYPE(Code)



UNDEFINED_CHART_TYPE
final public static int UNDEFINED_CHART_TYPE(Code)





Method Detail
getChart
public static JFreeChart getChart(Dataset dataset, String title, String units, int width, int height, ILogger logger)(Code)
Create a chart-object using dataset object. This method takes a dataset object, e.g. a DialWidgetDefinition, and creates and returns a JFreeChart object from it.
Parameters:
  dataset - The dataset
Parameters:
  title - The title of the chart
Parameters:
  units - The units of the chart value
Parameters:
  width - The width of the image to create
Parameters:
  height - The height of the image to create
Parameters:
  logger - The logger to log any messages to JFreeChart the generated chart object



getChartType
public static int getChartType(String typeStr)(Code)

Parameters:
  typeStr - String name for chart int representing the chart string passed in; -1 if invalid chart name
See Also:   ChartDefinition
See Also:    for valid chart name strings and integers



getChartTypeName
public static String getChartTypeName(int type)(Code)

Parameters:
  type - int type for chart String representing the chart
See Also:   ChartDefinition
See Also:    for valid chart name strings



getColor
public static Color getColor(String htmlColor)(Code)
Creates a java.awt.Color object from an HTML color definition, eg #80dd3f
Parameters:
  htmlColor - The color string A Color object



getFont
public static Font getFont(Node fontNode)(Code)
Creates a java.awt.TexturePaint object from an XML node from the dial definition document
Parameters:
  XML - Node from the dial definition
Parameters:
  width - of the chart
Parameters:
  height - of the chart Paint object defined by the node / public static PaintgetTexturePaint( Node node, int width, int height ) {if( node == null ) { return null; } int rectWidth=width; intrectHeight=height; int x=0; int y=0; // Get Image try{ Node imageNode =node.selectSingleNode( "background-image" ); //$NON-NLS-1$ if( imageNode !=null ) { String imageName = imageNode.getText().toString(); StringfileName = PentahoSystem.getApplicationContext().getSolutionPath(imageName ); int offset = fileName.lastIndexOf( "." ); //$NON-NLS-1$String type = offset == -1 ? "jpg" : fileName.substring(offset + 1);//$NON-NLS-1$BufferedImage image = new BufferedImage( width, height,BufferedImage.TYPE_INT_ARGB);ImageIO.write(image, type, new File( fileName ));Node rectangle= node.selectSingleNode("rectangle"); //$NON-NLS-1$ if(rectangle != null ) { Node tmpNode = rectangle.selectSingleNode("width");//$NON-NLS-1$ if( tmpNode != null ) {rectWidth=Integer.parseInt(tmpNode.getText().toString().trim());//$NON-NLS-1$ } tmpNode = rectangle.selectSingleNode("height");//$NON-NLS-1$ if( tmpNode != null ) {rectHeight=Integer.parseInt(tmpNode.getText().toString().trim());//$NON-NLS-1$ } tmpNode = rectangle.selectSingleNode("x"); //$NON-NLS-1$if( tmpNode != null ) {x=Integer.parseInt(tmpNode.getText().toString().trim()); //$NON-NLS-1$ }tmpNode = rectangle.selectSingleNode("y"); //$NON-NLS-1$ if( tmpNode !=null ) { y=Integer.parseInt(tmpNode.getText().toString().trim());//$NON-NLS-1$ } }Rectangle2D rect = new Rectangle2D.Double(x,y,rectWidth,rectHeight);return new TexturePaint(image,rect); }}catch(Exception e){e.printStackTrace();} return null; }



getGradientPaint
public static Paint getGradientPaint(Node gradientNode, int width, int height)(Code)

Parameters:
  gradientNode - root node that hold gradient information a gradientPaint implementation of Paint



getImage
public static Image getImage(Node chartBackgroundImageNode, IPentahoSession session)(Code)

Parameters:
  chartBackgroundImageNode - -Node that contains a path to the images in its text element the image



getImage
public static Image getImage(String imageName, IPentahoSession session)(Code)

Parameters:
  imageName - String that contains a path to the image the image



getLineStyleStroke
public static Stroke getLineStyleStroke(String lineStyle, float lineWidth)(Code)



getPaint
public static Paint getPaint(Node node, int width, int height, IPentahoSession session)(Code)
Creates a java.awt.Paint object from an XML node from the dial definition document
Parameters:
  width - of the chart
Parameters:
  height - of the chart
Parameters:
  node - XML Node from the dial definition Paint object defined by the node



getPaint
public static Paint getPaint(Node node)(Code)
Creates a java.awt.Paint object from an XML node from the dial definition document
Parameters:
  node - XML Node from the chart definition Paint object defined by the node



getPaint
public static Paint getPaint(String htmlColor)(Code)
Creates a java.awt.Paint object from an HTML color definition, eg #80ff3f
Parameters:
  htmlColor - The color string Paint The Paint object for the requested color



getTexturePaint
public static Paint getTexturePaint(Node textureNode, int width, int height, IPentahoSession session)(Code)

Parameters:
  textureNode - root node that holds texture information



getTransparent
public static Color getTransparent()(Code)



isBarColumn
public static boolean isBarColumn(String[] barColumns, String columnName)(Code)



isLineColumn
public static boolean isLineColumn(String[] lineColumns, String columnName)(Code)



saveChart
public static void saveChart(Dataset dataset, String title, String units, String fileName, int width, int height, int outputType, PrintWriter writer, ILogger logger)(Code)
Create an image file using dataset object. This method takes a dataset object, e.g. a DialWidgetDefinition, creates a JFreeChart object from it, and then creates an image file.
Parameters:
  dataset - The
Parameters:
  title - The title of the chart
Parameters:
  units - The units of the chart value
Parameters:
  fileName - The path and file of the image to create
Parameters:
  width - The width of the image to create
Parameters:
  height - The height of the image to create
Parameters:
  outputType - The type of the image to create
Parameters:
  writer - A writer to writer the image map into
Parameters:
  logger - The logger to log any messages to



saveChart
public static void saveChart(Dataset dataset, String title, String units, String fileName, int width, int height, int outputType, PrintWriter writer, ChartRenderingInfo info, ILogger logger)(Code)
Create an image file using dataset object. This method takes a dataset object, e.g. a DialWidgetDefinition, creates a JFreeChart object from it, and then creates an image file.
Parameters:
  dataset - The
Parameters:
  title - The title of the chart
Parameters:
  units - The units of the chart value
Parameters:
  fileName - The path and file of the image to create
Parameters:
  width - The width of the image to create
Parameters:
  height - The height of the image to create
Parameters:
  outputType - The type of the image to create
Parameters:
  writer - A writer to writer the image map into
Parameters:
  logger - The logger to log any messages to



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.