Java Doc for PDPageTree.java in  » PDF » jPod » de » intarsys » pdf » pd » 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 » jPod » de.intarsys.pdf.pd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.intarsys.pdf.cos.COSBasedObject
      de.intarsys.pdf.pd.PDObject
         de.intarsys.pdf.pd.PDPageNode
            de.intarsys.pdf.pd.PDPageTree

PDPageTree
public class PDPageTree extends PDPageNode (Code)
A page tree node is a container for pages (and other page tree nodes) within a PFD document. All pages in the document are direct or indirect children of the root page tree node in the COSCatalog object

Inner Class :public static class MetaClass extends PDPageNode.MetaClass

Field Summary
final public static  COSNameDK_Count
    
final public static  COSNameDK_Kids
    
final public static  MetaClassMETA
    

Constructor Summary
protected  PDPageTree(COSObject object)
     Create the receiver class from an already defined COSDictionary .

Method Summary
public  voidaddNode(int index, PDPageNode newNode)
     Add a page after at the designated index.
public  voidaddNode(PDPageNode newNode)
    
public  voidaddNodeAfter(PDPageNode newNode, PDPageNode destination)
     Add a page after the designated destination page.
protected  voidcollectAnnotations(List annotations)
    
protected  COSNamecosGetExpectedType()
    
protected  COSObjectcosSetKids(COSArray newKids)
    
protected  voidexchangeNode(PDPageNode oldNode, PDPageNode newNode)
    
public  intgetCount()
    
public  PDPageNodegetFirstNode()
    
public  PDPagegetFirstPage()
    
public  ListgetGenericChildren()
    
public  ListgetKids()
     Get the list of all page nodes that are children of the receiver.
public  PDPageNodegetLastNode()
    
protected  PDPageNodegetNextNode(PDPageNode node)
     Get the successor of node in the collection of children.
protected  PDPagegetNextPage(PDPage page)
     Get the next page in the collection of children after page.
protected  intgetNodeIndex(PDPageNode node)
     The 0 based index of node within this and all its ancestors, 0 if not found.
Parameters:
  node - node whose position is determined.
protected  PDPageNodegetPreviousNode(PDPageNode node)
     Get the predecessor of node in the collection of children.
protected  PDPagegetPreviousPage(PDPage page)
     Get the previous page in the collection of children before page.
protected  voidincrementCount(int delta)
    
protected  voidinitializeFromScratch()
    
public  voidinvalidateCaches()
    
public  booleanisPage()
    
public  PDPageTreerebalance()
     Rebalanve this.
public  voidremoveNode(PDPageNode node)
    
protected  voidsetCount(int newCount)
     Set the number of pages.

Field Detail
DK_Count
final public static COSName DK_Count(Code)



DK_Kids
final public static COSName DK_Kids(Code)



META
final public static MetaClass META(Code)
The meta class instance




Constructor Detail
PDPageTree
protected PDPageTree(COSObject object)(Code)
Create the receiver class from an already defined COSDictionary . NEVER use the constructor directly.
Parameters:
  object - the PDDocument containing the new object




Method Detail
addNode
public void addNode(int index, PDPageNode newNode)(Code)
Add a page after at the designated index.
Parameters:
  index - the index which to insert the new child at
Parameters:
  newNode - the child page to add



addNode
public void addNode(PDPageNode newNode)(Code)
Add a page as immediate child at last position
Parameters:
  newNode - the child page to create



addNodeAfter
public void addNodeAfter(PDPageNode newNode, PDPageNode destination)(Code)
Add a page after the designated destination page. the destination page must be in the receiver tree node
Parameters:
  newNode - the child page to add
Parameters:
  destination - the page after which to insert the new child



collectAnnotations
protected void collectAnnotations(List annotations)(Code)



cosGetExpectedType
protected COSName cosGetExpectedType()(Code)



cosSetKids
protected COSObject cosSetKids(COSArray newKids)(Code)



exchangeNode
protected void exchangeNode(PDPageNode oldNode, PDPageNode newNode)(Code)



getCount
public int getCount()(Code)



getFirstNode
public PDPageNode getFirstNode()(Code)



getFirstPage
public PDPage getFirstPage()(Code)



getGenericChildren
public List getGenericChildren()(Code)



getKids
public List getKids()(Code)
Get the list of all page nodes that are children of the receiver. an ArrayList



getLastNode
public PDPageNode getLastNode()(Code)



getNextNode
protected PDPageNode getNextNode(PDPageNode node)(Code)
Get the successor of node in the collection of children. If node is not a direct child return null. If page is the last child, lookup the next page via the parent of this.
Parameters:
  node - The page whose successor is requested. Get the next page in the collection of children after page.



getNextPage
protected PDPage getNextPage(PDPage page)(Code)
Get the next page in the collection of children after page. If page is not a direct child return null. If page is the last child, lookup the next page via the parent of this.
Parameters:
  page - The page whose successor is requested. Get the next page in the collection of children after page.



getNodeIndex
protected int getNodeIndex(PDPageNode node)(Code)
The 0 based index of node within this and all its ancestors, 0 if not found.
Parameters:
  node - node whose position is determined. The 0 based index of node within thisand all its ancestors, 0 if not found.



getPreviousNode
protected PDPageNode getPreviousNode(PDPageNode node)(Code)
Get the predecessor of node in the collection of children. If node is not a direct child return null. If page is the first child, lookup the previous page via the parent of this.
Parameters:
  node - The page whose predecessor is requested. Get the predecessor of node in the collection of children.



getPreviousPage
protected PDPage getPreviousPage(PDPage page)(Code)
Get the previous page in the collection of children before page. If page is not a direct child return null. If page is the first child, lookup the previous page via the parent of this.
Parameters:
  page - The page whose predecessor is requested. Get the previous page in the collection of children before page.



incrementCount
protected void incrementCount(int delta)(Code)
increment the number of pages and propagate change to parent node
Parameters:
  delta - number of pages to add



initializeFromScratch
protected void initializeFromScratch()(Code)



invalidateCaches
public void invalidateCaches()(Code)



isPage
public boolean isPage()(Code)



rebalance
public PDPageTree rebalance()(Code)
Rebalanve this. The new PDPageTree created or null if nothing changed.



removeNode
public void removeNode(PDPageNode node)(Code)
Remove a node
Parameters:
  node - The child node to remove



setCount
protected void setCount(int newCount)(Code)
Set the number of pages.
Parameters:
  newCount - number of pages to add



Fields inherited from de.intarsys.pdf.pd.PDPageNode
final public static COSName CN_Type_Page(Code)(Java Doc)
final public static COSName DK_Pages(Code)(Java Doc)
final public static COSName DK_Parent(Code)(Java Doc)
final public static COSName DK_Rotate(Code)(Java Doc)
final public static MetaClass META(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.pd.PDPageNode
abstract protected void collectAnnotations(List annotations)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
abstract public int getCount()(Code)(Java Doc)
public CDSRectangle getCropBox()(Code)(Java Doc)
public PDAnnotation getFirstAnnotation()(Code)(Java Doc)
abstract public PDPageNode getFirstNode()(Code)(Java Doc)
abstract public PDPage getFirstPage()(Code)(Java Doc)
public PDObject getGenericParent()(Code)(Java Doc)
public PDAnnotation getLastAnnotation()(Code)(Java Doc)
abstract public PDPageNode getLastNode()(Code)(Java Doc)
public PDPage getLastPage()(Code)(Java Doc)
public CDSRectangle getMediaBox()(Code)(Java Doc)
public PDPageNode getNextNode()(Code)(Java Doc)
public int getNodeIndex()(Code)(Java Doc)
public PDPage getPageAt(int index)(Code)(Java Doc)
public PDPageTree getParent()(Code)(Java Doc)
public PDPageNode getPreviousNode()(Code)(Java Doc)
public int getRotate()(Code)(Java Doc)
public void invalidateCaches()(Code)(Java Doc)
abstract public boolean isPage()(Code)(Java Doc)
public void setCropBox(CDSRectangle rect)(Code)(Java Doc)
public void setGenericParent(PDObject newParent)(Code)(Java Doc)
public void setMediaBox(CDSRectangle rect)(Code)(Java Doc)
protected void setParent(PDPageTree parent)(Code)(Java Doc)
public void setRotate(int rotate)(Code)(Java Doc)

Fields inherited from de.intarsys.pdf.pd.PDObject
final public static COSName DK_Subtype(Code)(Java Doc)
final public static COSName DK_Type(Code)(Java Doc)
final public static MetaClass META(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.pd.PDObject
protected COSName cosGetExpectedSubtype()(Code)(Java Doc)
protected COSName cosGetExpectedType()(Code)(Java Doc)
public COSObject cosGetFieldDescendant(COSName name)(Code)(Java Doc)
public COSObject cosGetFieldInheritable(COSName name)(Code)(Java Doc)
public COSObject cosGetFieldInherited(COSName name)(Code)(Java Doc)
final public COSName cosGetSubtype()(Code)(Java Doc)
final public COSName cosGetType()(Code)(Java Doc)
public COSObject cosRemoveFieldInheritable(COSName name)(Code)(Java Doc)
public COSObject cosSetFieldInheritable(COSName name, COSObject cosObj)(Code)(Java Doc)
final public COSName cosSetSubtype(COSName newType)(Code)(Java Doc)
final public COSName cosSetType(COSName newType)(Code)(Java Doc)
public PDDocument getDoc()(Code)(Java Doc)
public List getGenericChildren()(Code)(Java Doc)
public PDObject getGenericParent()(Code)(Java Doc)
protected List getPDObjects(COSName key, COSBasedObject.MetaClass metaclass, boolean addListener)(Code)(Java Doc)
protected void initializeFromScratch()(Code)(Java Doc)
public void setGenericParent(PDObject parent)(Code)(Java Doc)
protected void setPDObjects(COSName key, List list)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from de.intarsys.pdf.cos.COSBasedObject
final public static MetaClass META(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.cos.COSBasedObject
public void changed(COSObject pObject, Object slot, Object oldValue, Object newValue)(Code)(Java Doc)
public COSArray cosGetArray()(Code)(Java Doc)
public COSDictionary cosGetDict()(Code)(Java Doc)
public COSDocument cosGetDoc()(Code)(Java Doc)
public COSObject cosGetField(COSName name)(Code)(Java Doc)
public COSObject cosGetObject()(Code)(Java Doc)
public COSStream cosGetStream()(Code)(Java Doc)
public boolean cosHasField(COSName name)(Code)(Java Doc)
public COSObject cosRemoveField(COSName name)(Code)(Java Doc)
public COSObject cosSetField(COSName name, COSObject cosObj)(Code)(Java Doc)
public Object getAttribute(Object key)(Code)(Java Doc)
public boolean getFieldBoolean(COSName name, boolean defaultValue)(Code)(Java Doc)
public CDSDate getFieldDate(COSName name, CDSDate defaultValue)(Code)(Java Doc)
public float getFieldFixed(COSName name, float defaultValue)(Code)(Java Doc)
public float[] getFieldFixedArray(COSName name, float[] defaultValue)(Code)(Java Doc)
public int getFieldInt(COSName name, int defaultValue)(Code)(Java Doc)
public String getFieldMLString(COSName name, String defaultValue)(Code)(Java Doc)
public String getFieldString(COSName name, String defaultValue)(Code)(Java Doc)
protected void initializeFromCos()(Code)(Java Doc)
protected void initializeFromScratch()(Code)(Java Doc)
public void invalidateCaches()(Code)(Java Doc)
public Object removeAttribute(Object key)(Code)(Java Doc)
public Object setAttribute(Object key, Object value)(Code)(Java Doc)
public void setFieldBoolean(COSName name, boolean value)(Code)(Java Doc)
public void setFieldFixed(COSName name, float value)(Code)(Java Doc)
protected void setFieldFixedArray(COSName key, float[] array)(Code)(Java Doc)
public void setFieldInt(COSName name, int value)(Code)(Java Doc)
public void setFieldMLString(COSName name, String value)(Code)(Java Doc)
public void setFieldName(COSName name, String value)(Code)(Java Doc)
public void setFieldObject(COSName name, COSBasedObject value)(Code)(Java Doc)
public void setFieldString(COSName name, String value)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.