Package org.apache.fop.pdf
Class PDFParentTree
- java.lang.Object
-
- org.apache.fop.pdf.PDFObject
-
- org.apache.fop.pdf.PDFDictionary
-
- org.apache.fop.pdf.PDFNumberTreeNode
-
- org.apache.fop.pdf.PDFParentTree
-
- All Implemented Interfaces:
PDFWritable
public class PDFParentTree extends PDFNumberTreeNode
Class representing a PDF /ParentTree.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_NUMS_ARRAY_SIZE
-
Fields inherited from class org.apache.fop.pdf.PDFDictionary
entries, order
-
-
Constructor Summary
Constructors Constructor Description PDFParentTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addKid(PDFObject kid)
Registers a child object and adds it to the Kids array.void
addToNums(int num, java.lang.Object object)
Adds a number and object to the nums array and increases the upper limit should it be required.private void
insertItemToNumsArray(int array, int num, java.lang.Object object)
private void
setNumOfKidsArrays(int numKids)
-
Methods inherited from class org.apache.fop.pdf.PDFNumberTreeNode
getKids, getLowerLimit, getNums, getUpperLimit, setKids, setLowerLimit, setNums, setUpperLimit
-
Methods inherited from class org.apache.fop.pdf.PDFDictionary
containsKey, get, getChildren, getChildren, keySet, output, put, put, remove, writeDictionary
-
Methods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
-
-
-
-
Field Detail
-
MAX_NUMS_ARRAY_SIZE
private static final int MAX_NUMS_ARRAY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
addToNums
public void addToNums(int num, java.lang.Object object)
Description copied from class:PDFNumberTreeNode
Adds a number and object to the nums array and increases the upper limit should it be required.- Overrides:
addToNums
in classPDFNumberTreeNode
- Parameters:
num
- The unique number identifying the object in the arrayobject
- The object being added
-
setNumOfKidsArrays
private void setNumOfKidsArrays(int numKids)
-
addKid
private void addKid(PDFObject kid)
Registers a child object and adds it to the Kids array.- Parameters:
kid
- The child PDF object to be added
-
insertItemToNumsArray
private void insertItemToNumsArray(int array, int num, java.lang.Object object)
-
-