Package com.pd4ml.dom

Class LayoutBox


  • public final class LayoutBox
    extends java.lang.Object
    A rectangle an element takes on a page of a Layout: its border box (content, padding and border), or the part of it on that page when the element continues on another page. An inline element broken over lines has a box per line. Coordinates are in PDF points from the top left corner of the page.
    Since:
    v4.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getHeight()  
      int getPage()
      The page, 1 for the first page of the document.
      float getWidth()  
      float getX()
      Distance from the left edge of the page, in points.
      float getY()
      Distance from the top edge of the page, in points.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getPage

        public int getPage()
        The page, 1 for the first page of the document.
      • getX

        public float getX()
        Distance from the left edge of the page, in points.
      • getY

        public float getY()
        Distance from the top edge of the page, in points.
      • getWidth

        public float getWidth()
      • getHeight

        public float getHeight()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object