public class TreeNodeFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<PdfObjectTreeNode> |
nodes
An list containing the nodes of every indirect object.
|
protected IndirectObjectFactory |
objects
The factory that can produce all indirect objects.
|
| Constructor and Description |
|---|
TreeNodeFactory(IndirectObjectFactory objects)
Creates a factory that can produce TreeNode objects
corresponding with PDF objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
expandNode(PdfObjectTreeNode node)
Creates the Child TreeNode objects for a PDF object TreeNode.
|
PdfObjectTreeNode |
getChildNode(PdfObjectTreeNode node,
PdfName key)
Finds a specific child of dictionary node.
|
PdfObjectTreeNode |
getNode(int ref)
Gets a TreeNode for an indirect objects.
|
protected IndirectObjectFactory objects
protected ArrayList<PdfObjectTreeNode> nodes
public TreeNodeFactory(IndirectObjectFactory objects)
objects - a factory that can produce all the indirect objects of a PDF file.public PdfObjectTreeNode getNode(int ref)
ref - the reference number of the indirect object.public void expandNode(PdfObjectTreeNode node)
node - the parent nodepublic PdfObjectTreeNode getChildNode(PdfObjectTreeNode node, PdfName key)
node - the node with a dictionary among its childrenkey - the key of the item corresponding with the node we needCopyright © 2015. All rights reserved.