Package com.pd4ml.dom
Class LayoutBox
- java.lang.Object
-
- com.pd4ml.dom.LayoutBox
-
public final class LayoutBox extends java.lang.ObjectA rectangle an element takes on a page of aLayout: 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 floatgetHeight()intgetPage()The page, 1 for the first page of the document.floatgetWidth()floatgetX()Distance from the left edge of the page, in points.floatgetY()Distance from the top edge of the page, in points.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-