| 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
|
META | final public static MetaClass META(Code) | | The meta class instance
|
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 |
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) | | |
getCount | public int getCount()(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 |
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 this and 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) | | |
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 |
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)
|
|
|