| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addFirst(PDOutlineItem
The node to add. newChild)Adds the given node to the top of the children list. |
| public void | addLast(PDOutlineItem
The node to add. newChild)Adds the given node to the bottom of the children list. |
| private void | |
| public Iterable | |
| public void | |
| public PDOutlineItem | |
| public PDOutlineItem | |
| public int | Returns: The Count attribute of the outline dictionary.Get the number of open nodes or a negative number if this node is closed. |
| pack-priv PDOutlineItem | |
| pack-priv PDOutlineNode | |
| public boolean | |
| public boolean | |
| public void | |
| private void | |
| pack-priv void | |
| pack-priv void | setFirstChild(PDOutlineNode
The new first child. outlineNode)Set the first child, this will be maintained by this class. |
| pack-priv void | setLastChild(PDOutlineNode
The new last child. outlineNode)Set the last child, this will be maintained by this class. |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void | updateParentOpenCount(int
The amount to update by. delta)The count parameter needs to be updated when you add, remove, open or close outline items. |
| pack-priv void |
| PDOutlineNode | back to summary |
|---|---|
| public PDOutlineNode() Default Constructor. | |
| PDOutlineNode | back to summary |
|---|---|
public PDOutlineNode(COSDictionary dict)
| |
| addFirst | back to summary |
|---|---|
| public void addFirst(PDOutlineItem newChild) Adds the given node to the top of the children list.
| |
| addLast | back to summary |
|---|---|
| public void addLast(PDOutlineItem newChild) Adds the given node to the bottom of the children list.
| |
| append | back to summary |
|---|---|
| private void append(PDOutlineItem newChild) Appends the child to the linked list of children. This method only adjust pointers but doesn't take care of the Count key in the parent hierarchy. | |
| children | back to summary |
|---|---|
public Iterable
| |
| closeNode | back to summary |
|---|---|
| public void closeNode() Close this node. | |
| getFirstChild | back to summary |
|---|---|
public PDOutlineItem getFirstChild()
| |
| getLastChild | back to summary |
|---|---|
public PDOutlineItem getLastChild()
| |
| getOpenCount | back to summary |
|---|---|
| public int getOpenCount() Get the number of open nodes or a negative number if this node is closed. See PDF Reference 32000-1:2008 table 152 and 153 for more details. This value is updated as you append children and siblings.
| |
| getOutlineItem | back to summary |
|---|---|
| pack-priv PDOutlineItem getOutlineItem(COSName name) | |
| getParent | back to summary |
|---|---|
pack-priv PDOutlineNode getParent()
| |
| hasChildren | back to summary |
|---|---|
public boolean hasChildren()
| |
| isNodeOpen | back to summary |
|---|---|
public boolean isNodeOpen()
| |
| openNode | back to summary |
|---|---|
| public void openNode() This will set this node to be open when it is shown in the viewer. By default, when a new node is created it will be closed. This will do nothing if the node is already open. | |
| prepend | back to summary |
|---|---|
| private void prepend(PDOutlineItem newChild) Prepends the child to the linked list of children. This method only adjust pointers but doesn't take care of the Count key in the parent hierarchy. | |
| requireSingleNode | back to summary |
|---|---|
pack-priv void requireSingleNode(PDOutlineItem node)
| |
| setFirstChild | back to summary |
|---|---|
| pack-priv void setFirstChild(PDOutlineNode outlineNode) Set the first child, this will be maintained by this class.
| |
| setLastChild | back to summary |
|---|---|
| pack-priv void setLastChild(PDOutlineNode outlineNode) Set the last child, this will be maintained by this class.
| |
| setOpenCount | back to summary |
|---|---|
| pack-priv void setOpenCount(int openCount) Set the open count. This number is automatically managed for you when you add items to the outline.
| |
| setParent | back to summary |
|---|---|
| pack-priv void setParent(PDOutlineNode parent) | |
| switchNodeCount | back to summary |
|---|---|
| private void switchNodeCount() | |
| updateParentOpenCount | back to summary |
|---|---|
| pack-priv void updateParentOpenCount(int delta) The count parameter needs to be updated when you add, remove, open or close outline items.
| |
| updateParentOpenCountForAddedChild | back to summary |
|---|---|
| pack-priv void updateParentOpenCountForAddedChild(PDOutlineItem newChild) | |