Java Doc for PdfPageEventForwarder.java in  » PDF » pdf-itext » com » lowagie » text » pdf » events » 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 » PDF » pdf itext » com.lowagie.text.pdf.events 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.events.PdfPageEventForwarder

PdfPageEventForwarder
public class PdfPageEventForwarder implements PdfPageEvent(Code)
If you want to add more than one page event to a PdfWriter, you have to construct a PdfPageEventForwarder, add the different events to this object and add the forwarder to the PdfWriter.


Field Summary
protected  ArrayListevents
     ArrayList containing all the PageEvents that have to be executed.


Method Summary
public  voidaddPageEvent(PdfPageEvent event)
     Add a page event to the forwarder.
public  voidonChapter(PdfWriter writer, Document document, float paragraphPosition, Paragraph title)
     Called when a Chapter is written.
public  voidonChapterEnd(PdfWriter writer, Document document, float position)
     Called when the end of a Chapter is reached.
public  voidonCloseDocument(PdfWriter writer, Document document)
     Called when the document is closed.
public  voidonEndPage(PdfWriter writer, Document document)
     Called when a page is finished, just before being written to the document.
public  voidonGenericTag(PdfWriter writer, Document document, Rectangle rect, String text)
     Called when a Chunk with a generic tag is written.
public  voidonOpenDocument(PdfWriter writer, Document document)
     Called when the document is opened.
public  voidonParagraph(PdfWriter writer, Document document, float paragraphPosition)
     Called when a Paragraph is written.

paragraphPosition will hold the height at which the paragraph will be written to.

public  voidonParagraphEnd(PdfWriter writer, Document document, float paragraphPosition)
     Called when a Paragraph is written.
public  voidonSection(PdfWriter writer, Document document, float paragraphPosition, int depth, Paragraph title)
     Called when a Section is written.
public  voidonSectionEnd(PdfWriter writer, Document document, float position)
     Called when the end of a Section is reached.
public  voidonStartPage(PdfWriter writer, Document document)
     Called when a page is initialized.

Field Detail
events
protected ArrayList events(Code)
ArrayList containing all the PageEvents that have to be executed.





Method Detail
addPageEvent
public void addPageEvent(PdfPageEvent event)(Code)
Add a page event to the forwarder.
Parameters:
  event - an event that has to be added to the forwarder.



onChapter
public void onChapter(PdfWriter writer, Document document, float paragraphPosition, Paragraph title)(Code)
Called when a Chapter is written.

position will hold the height at which the chapter will be written to.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document
Parameters:
  paragraphPosition - the position the chapter will be written to
Parameters:
  title - the title of the Chapter




onChapterEnd
public void onChapterEnd(PdfWriter writer, Document document, float position)(Code)
Called when the end of a Chapter is reached.

position will hold the height of the end of the chapter.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document
Parameters:
  position - the position of the end of the chapter.




onCloseDocument
public void onCloseDocument(PdfWriter writer, Document document)(Code)
Called when the document is closed.

Note that this method is called with the page number equal to the last page plus one.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document




onEndPage
public void onEndPage(PdfWriter writer, Document document)(Code)
Called when a page is finished, just before being written to the document.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document



onGenericTag
public void onGenericTag(PdfWriter writer, Document document, Rectangle rect, String text)(Code)
Called when a Chunk with a generic tag is written.

It is usefull to pinpoint the Chunk location to generate bookmarks, for example.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document
Parameters:
  rect - the Rectangle containing the Chunk
Parameters:
  text - the text of the tag




onOpenDocument
public void onOpenDocument(PdfWriter writer, Document document)(Code)
Called when the document is opened.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document



onParagraph
public void onParagraph(PdfWriter writer, Document document, float paragraphPosition)(Code)
Called when a Paragraph is written.

paragraphPosition will hold the height at which the paragraph will be written to. This is useful to insert bookmarks with more control.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document
Parameters:
  paragraphPosition - the position the paragraph will be written to




onParagraphEnd
public void onParagraphEnd(PdfWriter writer, Document document, float paragraphPosition)(Code)
Called when a Paragraph is written.

paragraphPosition will hold the height of the end of the paragraph.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document
Parameters:
  paragraphPosition - the position of the end of the paragraph




onSection
public void onSection(PdfWriter writer, Document document, float paragraphPosition, int depth, Paragraph title)(Code)
Called when a Section is written.

position will hold the height at which the section will be written to.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document
Parameters:
  paragraphPosition - the position the section will be written to
Parameters:
  depth - the number depth of the Section
Parameters:
  title - the title of the section




onSectionEnd
public void onSectionEnd(PdfWriter writer, Document document, float position)(Code)
Called when the end of a Section is reached.

position will hold the height of the section end.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document
Parameters:
  position - the position of the end of the section




onStartPage
public void onStartPage(PdfWriter writer, Document document)(Code)
Called when a page is initialized.

Note that if even if a page is not written this method is still called. It is preferable to use onEndPage to avoid infinite loops.
Parameters:
  writer - the PdfWriter for this document
Parameters:
  document - the document




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.