Package com.itextpdf.layout.layout
Class LayoutPosition
- java.lang.Object
-
- com.itextpdf.layout.layout.LayoutPosition
-
public class LayoutPosition extends java.lang.Object
We use a simplified version of CSS positioning. See https://www.webkit.org/blog/117/webcore-rendering-iv-absolutefixed-and-relative-positioning
-
-
Field Summary
Fields Modifier and Type Field Description static int
ABSOLUTE
Absolute positioned objects are positioned relative to the containing block, which is the nearest enclosing ancestor block with a position other than 'static'.static int
FIXED
Fixed positioned objects are positioned relative to the viewport, i.e., the page area of the current page.static int
RELATIVE
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 int
STATIC
Default positioning by normal rules of block and line layout.
-
Constructor Summary
Constructors Constructor Description LayoutPosition()
-
-
-
Field Detail
-
STATIC
public static final int STATIC
Default positioning by normal rules of block and line layout.- See Also:
- Constant Field Values
-
RELATIVE
public static final int RELATIVE
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. 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:
- Constant Field Values
-
ABSOLUTE
public static final int ABSOLUTE
Absolute positioned objects are positioned relative to the containing block, which is the nearest enclosing ancestor block with a position other than 'static'.- See Also:
- Constant Field Values
-
FIXED
public static final int FIXED
Fixed positioned objects are positioned relative to the viewport, i.e., the page area of the current page.- See Also:
- Constant Field Values
-
-