org.jfree.report

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.jfree.report 
org.jfree.report
Main classes in the JFreeReport class library.

Some rules when working with the report definition objects:

  • Functions cannot be added to the report once the report generation has started.
  • Do not modify the report structure after the report generation is started, unless you know exactly what you are doing.
  • It is safe to modify the report definition before the report is started.
  • Once the report processing has started, the report from the report processor must not be reused for other purposes.

Groups

A group is a set of database rows, where the contents of the group fields are equal for all rows.

Lets look at the following table:

CarColorPrice
Toyotablue10.000
Toyotablue20.000
Toyotared15.000
Lexusblue25.000
Lexusyellow15.000
BMWyellow40.000
BMWblue35.000
BMWgreen5.000

Groups are always defined on sorted tables. A group is defined by selecting one or more rows, which should form the group. A group instance will contain all rows from the beginning of the group until one of the group fields changes.

Lets select the row car for our group:

Selecting that row as group argument will result in 3 group instances. The first group instance will contain the first 3 rows (as the contents of these rows are equal).

The next instance will contain all rows of the "Lexus" car and the last group contains all rows from the "BMW" rows.

If a group is defined by more than one field, then the group will end, if one of the group member fields changes.

Lets define a group which consists of "Car" and "Color".

The first instance of the group will contain the first 2 rows (Toyota,blue). Then the value in the column "Color" changes, so a new group instance is started. This new group contains a single row, as the column "Car" in the next row will contain a different value.

The next two group instances are "Lexus, blue" and "Lexus, yellow", both group instances contain 1 row, as the color changes after 1 row.

The next row starts a new group, as the column "Car" contains a different value (BWM instead of Lexus). It doesn't matter, that the color is still equal, to end a group instance, it is sufficient that one column value changed.

Java Source File NameTypeComment
AbstractReportDefinition.javaClass The AbstractReportDefinition serves as base-implementation for both the SubReport and the global JFreeReport instance.
AbstractRootLevelBand.javaClass The root-level band is the container that is processed by a report-state.
Anchor.javaClass An anchor is a possible target for external hyperlinks.

In HTML anchors would be produced by using <a name="anchorname">.

AnchorElement.javaClass The anchor element creates targets for hyperlinks.
Band.javaClass A report band is a collection of other elements and bands, similiar to an AWT-Container.
CustomPageDefinition.javaClass A page definition, that consists of one or many pages.
DataFactory.javaInterface Creates a tablemodel on request.
DataFlags.javaInterface A DataFlags object is an immutable wrapper around a value read from the datarow.
DataRow.javaInterface This is the base interface for all data access collectors.
DataSet.javaInterface A dataset is a one-dimensional collection of data items.
DataSourceException.javaClass
DefaultImageReference.javaClass An DefaultImageReference encapsulates the source of an image together with a java.awt.Image.
DefaultResourceBundleFactory.javaClass A default implementation of the ResourceBundleFactory, that creates resource bundles using the specified locale.
DrawableElement.javaClass The element that returns a drawable object.
Element.javaClass Base class for all report elements (displays items that can appear within a report band).

Elements can either be Bands (which are container classes that group elements) or content-elements.

ElementAlignment.javaClass Represents the alignment of an element.
EmptyReportData.javaClass
EmptyReportDataFactory.javaClass
EmptyReportException.javaClass The EmptyReportException is thrown, it the report processing generated no content.
Group.javaClass A report group.
GroupFooter.javaClass A band that appears at the end of each instance of a group.
GroupHeader.javaClass A report band that appears at the beginning of each instance of a group.
GroupList.javaClass The group list is used to store groups in a ordered way.
ImageContainer.javaInterface A image container stores all layout information to process images in a report.

The ImageContainer is the common base interface for the URLImageContainer (which references remote images) and the LocalImageContainer (which references local AWT-Image instances).

All the layouting engine needs to know about images, are the image dimensions and the possible scale factor for the contained image.

ImageElement.javaClass Used to draw images.
InvalidReportStateException.javaClass An exception that can be thrown during report processing, if an error occurs.
ItemBand.javaClass A report band that displays a row of data items.
JFreeReport.javaClass A JFreeReport instance is used as report template to define the visual layout of a report and to collect all data sources for the reporting.
JFreeReportBoot.javaClass An utility class to safely boot and initialize the JFreeReport library.
JFreeReportCoreModule.javaClass The CoreModule is used to represent the base classes of JFreeReport in a PackageManager-compatible way.
JFreeReportInfo.javaClass Details about the JFreeReport project.
LocalImageContainer.javaInterface The LocalImageContainer makes the image available as 'java.awt.Image' instance.
NoDataBand.javaClass The No-Data-Band is printed if the current report has no data in its main data-table.
PageDefinition.javaInterface A logical page definition for a report.

Page oriented reports use the page definition to distribute the content of one logical page to the physical pages. The order of the physical pages in the page definition defines the content order in the generated documents.

Flow oriented reports will use the page-definitions width as default width for the layouting.

If a logical page is completly empty, it will be removed from the report and a pageCanceled event is fired.

PageFooter.javaClass A report band that appears at the bottom of every page.
PageHeader.javaClass A report band used to print information at the top of every page in the report.
ParameterDataRow.javaClass A static data row that reads its values from a report properties collection.
ParameterMapping.javaClass A parameter mapping defines an aliasing rule for incoming and outgoing sub-report parameters.
ReportConfigurationException.javaClass
ReportData.javaInterface A report data source is a ordered set of rows.
ReportDataFactory.javaInterface The report data-factory is responsible for querying the data from arbitary datasources.
ReportDataFactoryException.javaClass
ReportDefinition.javaInterface A report definition.
ReportEventException.javaClass The ReportEventException is thrown, if there were unrecoverable exceptions during the report processing.
ReportException.javaClass
ReportFooter.javaClass A report band that appears as the very last band on the report.

Note that if there is a page footer on the last page of your report, it will be printed below the report footer, the logic being that the page footer *always* appears at the bottom of the page.

ReportHeader.javaClass A report band that is printed once only at the beginning of the report.

A flag can be set forcing the report generator to start a new page after printing the report header.

Note that if there is a page header on the first page of your report, it will be printed above the report header, the logic being that the page header *always* appears at the top of the page.

ReportInitialisationException.javaClass An exception that is thrown when a report fails to initialise.
ReportInterruptedException.javaClass This exception is thrown when the current thread received the Interrupt-signal while the report is beeing processed.
ReportProcessingException.javaClass An exception that can be thrown during report processing, if an error occurs.
ResourceBundleFactory.javaInterface A resource bundle factory defines the locale for a report and is used to create resourcebundles.
RootLevelBand.javaInterface A RootLevelBand is directly connected with a report definition or a group.
ShapeElement.javaClass Used to draw shapes (typically lines and boxes) on a report band.
SimplePageDefinition.javaClass A simple page definition defines a logical page, for which all physical pages have the same size.
SubReport.javaClass A subreport element.
TableDataFactory.javaClass The TableDataFactory provides keyed access to predefined tablemodels.
TableReportData.javaClass
TableReportDataFactory.javaClass
TextElement.javaClass The base class for all elements that display text in a report band.

All content is converted to String using the String.valueOf () method.

URLImageContainer.javaInterface An image container, that references a remote image.
Watermark.javaClass A report band used to print information at the background of every page in the report.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.