Class PdfTree

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Observer, Accessible, Scrollable

public class PdfTree extends JTree implements Observer
A JTree that shows the object hierarchy of a PDF document.
See Also:
  • Field Details

  • Constructor Details

    • PdfTree

      public PdfTree()
      Constructs a PDF tree.
  • Method Details

    • getRoot

      public PdfTrailerTreeNode getRoot()
      Getter for the root node
      Returns:
      the PDF Trailer node
    • update

      public void update(Observable observable, Object obj)
      Updates the PdfTree when a file is closed or when a ObjectLoader has finished loading objects.
      Specified by:
      update in interface Observer
      Parameters:
      observable - the Observable class that started the update
      obj - the object that has all the updates
      See Also:
    • 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