Package org.apache.fop.pdf
Class PDFNumberTreeNode
- java.lang.Object
-
- org.apache.fop.pdf.PDFObject
-
- org.apache.fop.pdf.PDFDictionary
-
- org.apache.fop.pdf.PDFNumberTreeNode
-
- All Implemented Interfaces:
PDFWritable
- Direct Known Subclasses:
PDFPageLabels
,PDFParentTree
public class PDFNumberTreeNode extends PDFDictionary
Class representing a PDF number tree node.
-
-
Constructor Summary
Constructors Constructor Description PDFNumberTreeNode()
create a named destination
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.PDFArray
getKids()
Returns the Kids array.java.lang.Integer
getLowerLimit()
Returns the lower limit value of the Limits array.PDFNumsArray
getNums()
Returns the Nums array.java.lang.Integer
getUpperLimit()
Returns the upper limit value of the Limits array.private PDFArray
prepareLimitsArray()
void
setKids(PDFArray kids)
Sets the Kids array.void
setLowerLimit(java.lang.Integer key)
Sets the lower limit value of the Limits array.void
setNums(PDFNumsArray nums)
Sets the Nums array.void
setUpperLimit(java.lang.Integer key)
Sets the upper limit value of the Limits array.-
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
-
KIDS
private static final java.lang.String KIDS
- See Also:
- Constant Field Values
-
NUMS
private static final java.lang.String NUMS
- See Also:
- Constant Field Values
-
LIMITS
private static final java.lang.String LIMITS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setKids
public void setKids(PDFArray kids)
Sets the Kids array.- Parameters:
kids
- the Kids array
-
getKids
public PDFArray getKids()
Returns the Kids array.- Returns:
- the Kids array
-
setNums
public void setNums(PDFNumsArray nums)
Sets the Nums array.- Parameters:
nums
- the Nums array
-
getNums
public PDFNumsArray getNums()
Returns the Nums array.- Returns:
- the Nums array
-
setLowerLimit
public void setLowerLimit(java.lang.Integer key)
Sets the lower limit value of the Limits array.- Parameters:
key
- the lower limit value
-
getLowerLimit
public java.lang.Integer getLowerLimit()
Returns the lower limit value of the Limits array.- Returns:
- the lower limit value
-
setUpperLimit
public void setUpperLimit(java.lang.Integer key)
Sets the upper limit value of the Limits array.- Parameters:
key
- the upper limit value
-
getUpperLimit
public java.lang.Integer getUpperLimit()
Returns the upper limit value of the Limits array.- Returns:
- the upper limit value
-
addToNums
protected 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.- Parameters:
num
- The unique number identifying the object in the arrayobject
- The object being added
-
prepareLimitsArray
private PDFArray prepareLimitsArray()
-
-