Package com.itextpdf.layout.layout
Class LayoutPosition
java.lang.Object
com.itextpdf.layout.layout.LayoutPosition
We use a simplified version of CSS positioning. See https://www.webkit.org/blog/117/webcore-rendering-iv-absolutefixed-and-relative-positioning
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Absolute positioned objects are positioned relative to the containing block, which is the nearest enclosing ancestor block with a position other than 'static'.static final int
Fixed positioned objects are positioned relative to the viewport, i.e., the page area of the current page.static final int
Relative positioning is exactly like static positioning except that the left, top, right and bottom properties can be used to apply a translation to the object.static final int
Default positioning by normal rules of block and line layout. -
Constructor Summary
-
Method Summary
-
Field Details
-
STATIC
public static final int STATICDefault positioning by normal rules of block and line layout.- See Also:
-
RELATIVE
public static final int RELATIVERelative positioning is exactly like static positioning except that the left, top, right and bottom properties can be used to apply a translation to the object. Relative positioning is literally nothing more than a paint-time translation. As far as layout is concerned, the object is at its original position.- See Also:
-
ABSOLUTE
public static final int ABSOLUTEAbsolute positioned objects are positioned relative to the containing block, which is the nearest enclosing ancestor block with a position other than 'static'.- See Also:
-
FIXED
public static final int FIXEDFixed positioned objects are positioned relative to the viewport, i.e., the page area of the current page.- See Also:
-
-
Constructor Details
-
LayoutPosition
public LayoutPosition()
-