public class PageLabelNode extends Object
Modifier and Type | Field and Description |
---|---|
protected PdfDictionary |
_dict
The dictionary which defines this node.
|
protected PdfModule |
_module
The PdfModule this node is associated with.
|
protected PageLabelNode |
_parent
The parent node of this node.
|
protected boolean |
_walkFinished
Set to true when all subnodes of this node
have been iterated through following a StartWalk.
|
Constructor and Description |
---|
PageLabelNode(PdfModule module,
PageLabelNode parent,
PdfDictionary dict)
Superclass constructor.
|
Modifier and Type | Method and Description |
---|---|
PdfObject |
_getCurrentValue()
Returns value associated with current key
|
void |
buildSubtree()
Build the subtree of descendants of this node, using
the Kids entry in the dictionary.
|
boolean |
findNextKeyValue()
Obtain the next key-value pair from the tree.
|
int |
getCurrentKey()
Returns key at current position in traversing tree
|
int |
getPrevKey()
Returns key previously obtained in traversing tree
|
PdfObject |
getPrevValue()
Returns value associated with key previously obtained
in traversing tree
|
static String |
intToBase26(int n,
boolean upperCase)
A convenience method to turn integers into
"letter" page numbers as defined for PDF.
|
static String |
intToRoman(int n,
boolean upperCase)
A convenience method to turn integers into Roman
numerals, for the generation of page labels.
|
PageLabelNode |
nextLeafObject()
Get the next leaf object which is under this node.
|
void |
startWalk()
Initialize an iterator through the descendants of this node.
|
protected PdfModule _module
protected PageLabelNode _parent
protected PdfDictionary _dict
protected boolean _walkFinished
public PageLabelNode(PdfModule module, PageLabelNode parent, PdfDictionary dict)
module
- The PdfModule under which we're operatingparent
- The parent node in the document tree;
may be null only for the root nodedict
- The dictionary object on which this node
is basedpublic void buildSubtree() throws PdfException
PdfException
public void startWalk()
public PageLabelNode nextLeafObject()
public boolean findNextKeyValue() throws PdfException
PdfException
public int getCurrentKey()
public PdfObject _getCurrentValue()
public int getPrevKey()
public PdfObject getPrevValue()
public static String intToRoman(int n, boolean upperCase)
public static String intToBase26(int n, boolean upperCase)
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.