Class PageTreeNode

java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.PageTreeNode
All Implemented Interfaces:
PDFObject

class PageTreeNode extends Object implements PDFObject
Represents an intermediate node in the page tree of a PDF document.
  • Field Details

  • Constructor Details

    • PageTreeNode

      public PageTreeNode(PageTreeNode parent)
      Initializes a PageTreeNode with the specified parent node.
      Parameters:
      parent - Parent node or null to create a root node.
  • Method Details

    • getType

      public String getType()
      Returns the type of this object. The return value is always Pages.
      Returns:
      The String Pages.
    • getParent

      public PageTreeNode getParent()
      Returns the parent of this node. If this node is a root node, the method returns null.
      Returns:
      Parent node or null, if this is a root node.
    • add

      public void add(Page page)
      Adds the specified Page to the node's children.
      Parameters:
      page - Page to be added.
    • getKids

      public List<Page> getKids()
      Returns all Page objects that are immediate children of this node.
      Returns:
      List of child pages.
    • getCount

      public int getCount()
      Returns the total number of Page objects in this subtree.
      Returns:
      Number of pages that are direct or indirect children.