Java Doc for DefaultOutputFunction.java in  » Report » pentaho-report » org » jfree » report » layout » output » 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.jfree.report.layout.output 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jfree.report.function.AbstractFunction
   org.jfree.report.layout.output.DefaultOutputFunction

DefaultOutputFunction
public class DefaultOutputFunction extends AbstractFunction implements OutputFunction,PageEventListener(Code)
Creation-Date: 08.04.2007, 16:22:18
author:
   Thomas Morgner


Field Summary
final public static  StringHANDLE_PENDING_GROUP_FOOTER_KEY
    

Constructor Summary
public  DefaultOutputFunction()
     Creates an unnamed function.

Method Summary
protected  voidclearCurrentEvent()
     Clears the current event.
final public  Objectclone()
     Clones the function.
protected static  LayouterLevel[]collectSubReportStates(ReportEvent event, ExpressionRuntime parent)
    
public  OutputFunctionderiveForPagebreak()
     Creates a cheaper version of the deep-copy of the output function.
public  OutputFunctionderiveForStorage()
     Creates a storage-copy of the output function.
protected  ReportEventgetCurrentEvent()
     Returns the current report event.
public  ExpressiongetInstance()
    
public  RenderergetRenderer()
    
public  ObjectgetValue()
     Return the current expression value.
public  voidgroupFinished(ReportEvent event)
     Receives notification that a group has finished.
public  voidgroupStarted(ReportEvent event)
     Receives notification that a group has started.
protected  booleanisLastPagebreak()
    
public  voiditemsAdvanced(ReportEvent event)
     Receives notification that a row of data is being processed.
public  voiditemsStarted(ReportEvent event)
     Receives notification that a group of item bands is about to be processed.
public  voidpageFinished(ReportEvent event)
     Receives notification that a page has ended.

This prints the PageFooter.

public  voidpageStarted(ReportEvent event)
     Receives notification that a page has started.
protected  voidprint(ExpressionRuntime dataRow, Band band)
     Prints the given band at the current cursor position.
public  voidreportDone(ReportEvent event)
     Receives notification that report generation has completed, the report footer was printed, no more output is done.
public  voidreportFinished(ReportEvent event)
     Receives notification that the report has finished.
public  voidreportInitialized(ReportEvent event)
    
public  voidreportStarted(ReportEvent event)
     Receives notification that the report has started.
protected  voidsetCurrentEvent(ReportEvent currentEvent)
     Sets the current event (also updates the report reference).
public  voidsetRenderer(Renderer renderer)
    
protected  voidupdateFooterArea(ReportEvent event)
    
protected  voidupdateHeaderArea(ReportEvent event)
    

Field Detail
HANDLE_PENDING_GROUP_FOOTER_KEY
final public static String HANDLE_PENDING_GROUP_FOOTER_KEY(Code)




Constructor Detail
DefaultOutputFunction
public DefaultOutputFunction()(Code)
Creates an unnamed function. Make sure the name of the function is set using DefaultOutputFunction.setName before the function is added to the report's function collection.




Method Detail
clearCurrentEvent
protected void clearCurrentEvent()(Code)
Clears the current event.



clone
final public Object clone() throws CloneNotSupportedException(Code)
Clones the function.

Be aware, this does not create a deep copy. If you have complex strucures contained in objects, you have to override this function. a clone of this function.
throws:
  CloneNotSupportedException - this should never happen.




collectSubReportStates
protected static LayouterLevel[] collectSubReportStates(ReportEvent event, ExpressionRuntime parent)(Code)



deriveForPagebreak
public OutputFunction deriveForPagebreak()(Code)
Creates a cheaper version of the deep-copy of the output function. A pagebreak-derivate is created on every possible pagebreak position and must contain all undo/rollback information to restore the state of any shared object when a roll-back is requested.

Any failure to implement this method correctly will be a great source of very subtle bugs. the deep clone.




deriveForStorage
public OutputFunction deriveForStorage()(Code)
Creates a storage-copy of the output function. A storage copy must create a deep clone of all referenced objects so that it is guaranteed that changes to either the original or the clone do not affect the other instance.

Any failure to implement this method correctly will be a great source of very subtle bugs. the deep clone.




getCurrentEvent
protected ReportEvent getCurrentEvent()(Code)
Returns the current report event. the event.



getInstance
public Expression getInstance()(Code)



getRenderer
public Renderer getRenderer()(Code)



getValue
public Object getValue()(Code)
Return the current expression value.

The value depends (obviously) on the expression implementation. the value of the function.




groupFinished
public void groupFinished(ReportEvent event)(Code)
Receives notification that a group has finished.

Prints the GroupFooter.
Parameters:
  event - Information about the event.




groupStarted
public void groupStarted(ReportEvent event)(Code)
Receives notification that a group has started.

Prints the GroupHeader
Parameters:
  event - Information about the event.




isLastPagebreak
protected boolean isLastPagebreak()(Code)



itemsAdvanced
public void itemsAdvanced(ReportEvent event)(Code)
Receives notification that a row of data is being processed.

prints the ItemBand.
Parameters:
  event - Information about the event.




itemsStarted
public void itemsStarted(ReportEvent event)(Code)
Receives notification that a group of item bands is about to be processed.

The next events will be itemsAdvanced events until the itemsFinished event is raised.
Parameters:
  event - The event.




pageFinished
public void pageFinished(ReportEvent event)(Code)
Receives notification that a page has ended.

This prints the PageFooter. If this is the first page, the footer is not printed if the pagefooter style-flag DISPLAY_ON_FIRSTPAGE is set to false. If this event is known to be the last pageFinished event, the DISPLAY_ON_LASTPAGE is evaluated and the footer is printed only if this flag is set to TRUE.


Parameters:
  event - the report event.




pageStarted
public void pageStarted(ReportEvent event)(Code)
Receives notification that a page has started.

This prints the PageHeader. If this is the first page, the header is not printed if the pageheader style-flag DISPLAY_ON_FIRSTPAGE is set to false. If this event is known to be the last pageStarted event, the DISPLAY_ON_LASTPAGE is evaluated and the header is printed only if this flag is set to TRUE.

If there is an active repeating GroupHeader, print the last one. The GroupHeader is searched for the current group and all parent groups, starting at the current group and ascending to the parents. The first goupheader that has the StyleFlag REPEAT_HEADER set to TRUE is printed.

The PageHeader and the repeating GroupHeader are spooled until the first real content is printed. This way, the LogicalPage remains empty until an other band is printed.
Parameters:
  event - Information about the event.




print
protected void print(ExpressionRuntime dataRow, Band band)(Code)
Prints the given band at the current cursor position.
Parameters:
  dataRow - the datarow for evaluating the band's value-expressions.
Parameters:
  band - the band to be printed.



reportDone
public void reportDone(ReportEvent event)(Code)
Receives notification that report generation has completed, the report footer was printed, no more output is done. This is a helper event to shut down the output service.
Parameters:
  event - The event.



reportFinished
public void reportFinished(ReportEvent event)(Code)
Receives notification that the report has finished.

Prints the ReportFooter and forces the last pagebreak.
Parameters:
  event - Information about the event.




reportInitialized
public void reportInitialized(ReportEvent event)(Code)



reportStarted
public void reportStarted(ReportEvent event)(Code)
Receives notification that the report has started. Also invokes the start of the first page ...

Layout and draw the report header after the PageStartEvent was fired.
Parameters:
  event - the event.




setCurrentEvent
protected void setCurrentEvent(ReportEvent currentEvent)(Code)
Sets the current event (also updates the report reference).
Parameters:
  currentEvent - event.



setRenderer
public void setRenderer(Renderer renderer)(Code)



updateFooterArea
protected void updateFooterArea(ReportEvent event) throws ReportProcessingException(Code)



updateHeaderArea
protected void updateHeaderArea(ReportEvent event) throws ReportProcessingException(Code)



Methods inherited from org.jfree.report.function.AbstractFunction
public void groupFinished(ReportEvent event)(Code)(Java Doc)
public void groupStarted(ReportEvent event)(Code)(Java Doc)
public void itemsAdvanced(ReportEvent event)(Code)(Java Doc)
public void itemsFinished(ReportEvent event)(Code)(Java Doc)
public void itemsStarted(ReportEvent event)(Code)(Java Doc)
public void reportDone(ReportEvent event)(Code)(Java Doc)
public void reportFinished(ReportEvent event)(Code)(Java Doc)
public void reportInitialized(ReportEvent event)(Code)(Java Doc)
public void reportStarted(ReportEvent event)(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.