com.lowagie.rups.model
public class TreeNodeFactory extends Object
Field Summary | |
---|---|
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 Summary | |
---|---|
TreeNodeFactory(IndirectObjectFactory objects)
Creates a factory that can produce TreeNode objects
corresponding with PDF objects. |
Method Summary | |
---|---|
void | addNodes(PdfObjectTreeNode parent, PdfObjectTreeNode child)
Tries adding a child node to a parent node without
throwing an exception. |
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. |
Parameters: objects a factory that can produce all the indirect objects of a PDF file.
Parameters: parent the parent node child a child node
Parameters: node the parent node
Parameters: node the node with a dictionary among its children key the key of the item corresponding with the node we need
Parameters: ref the reference number of the indirect object.
Returns: the TreeNode representing the PDF object