com.lowagie.rups.view.itext

Class PdfTree

public class PdfTree extends JTree implements Observer

A JTree that shows the object hierarchy of a PDF document.
Field Summary
protected PdfTrailerTreeNoderoot
The root of the PDF tree.
static longserialVersionUID
a serial version UID
Constructor Summary
PdfTree()
Constructs a PDF tree.
Method Summary
PdfTrailerTreeNodegetRoot()
Getter for the root node
voidselectNode(PdfObjectTreeNode node)
Select a specific node in the tree.
voidupdate(Observable observable, Object obj)
Updates the PdfTree when a file is closed or when a ObjectLoader has finished loading objects.

Field Detail

root

protected PdfTrailerTreeNode root
The root of the PDF tree.

serialVersionUID

private static final long serialVersionUID
a serial version UID

Constructor Detail

PdfTree

public PdfTree()
Constructs a PDF tree.

Method Detail

getRoot

public PdfTrailerTreeNode getRoot()
Getter for the root node

Returns: the PDF Trailer node

selectNode

public void selectNode(PdfObjectTreeNode node)
Select a specific node in the tree. Typically this method will be called from a different tree, such as the pages, outlines or form tree.

Parameters: node the node that has to be selected

update

public void update(Observable observable, Object obj)
Updates the PdfTree when a file is closed or when a ObjectLoader has finished loading objects.

Parameters: observable the Observable class that started the update obj the object that has all the updates

See Also: java.util.Observer#update(java.util.Observable, java.lang.Object)