- java.lang.Object
-
- javax.swing.tree.DefaultMutableTreeNode
-
- org.icepdf.ri.common.utility.outline.OutlineItemTreeNode
-
- All Implemented Interfaces:
Serializable,Cloneable,MutableTreeNode,TreeNode
public class OutlineItemTreeNode extends DefaultMutableTreeNode
A PDF document may optionally display a document outline on the screen, allowing the user to navigate interactively from one part of the document to another. The outline consists of a tree-structured hierarchy of outline items (sometimes called bookmarks), which serve as a "visual table of contents" to display the document's structure to the user. The user can interactively open and close individual items by clicking them with the mouse. When an item is open, its immediate children in the hierarchy become visible on the screen; each child may in turn be open or closed, selectively revealing or hiding further parts of the hierarchy. When an item is closed, all of its descendants in the hierarchy are hidden. Clicking the text of any visible item with the mouse activates the item, causing the viewer application to jump to a destination or trigger an action associated with the item. An OutlineItemTreeNode object represents the bookmarks or leaves which makes up the actual Outline JTree.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
-
-
Constructor Summary
Constructors Constructor Description OutlineItemTreeNode(OutlineItem item)Creates a new instance of an OutlineItemTreeNodeOutlineItemTreeNode(OutlineItem item, Pattern searchPattern, boolean isCaseSensitive)OutlineItemTreeNode(OutlineItemTreeNode userObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChildCount()OutlineItemgetOutlineItem()voidrecursivelyClearOutlineItems()-
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
-
-
-
-
Constructor Detail
-
OutlineItemTreeNode
public OutlineItemTreeNode(OutlineItem item)
Creates a new instance of an OutlineItemTreeNode- Parameters:
item- Contains PDF Outline item data
-
OutlineItemTreeNode
public OutlineItemTreeNode(OutlineItemTreeNode userObject)
-
OutlineItemTreeNode
public OutlineItemTreeNode(OutlineItem item, Pattern searchPattern, boolean isCaseSensitive)
-
-
Method Detail
-
getOutlineItem
public OutlineItem getOutlineItem()
-
recursivelyClearOutlineItems
public void recursivelyClearOutlineItems()
-
getChildCount
public int getChildCount()
- Specified by:
getChildCountin interfaceTreeNode- Overrides:
getChildCountin classDefaultMutableTreeNode
-
-