|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.rups.model.TreeNodeFactory
public class TreeNodeFactory
A factory that creates TreeNode objects corresponding with PDF objects.
Field Summary | |
---|---|
protected java.util.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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IndirectObjectFactory objects
protected java.util.ArrayList<PdfObjectTreeNode> nodes
Constructor Detail |
---|
public TreeNodeFactory(IndirectObjectFactory objects)
objects
- a factory that can produce all the indirect objects of a PDF file.Method Detail |
---|
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 need
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |