Class LayoutPosition

java.lang.Object
com.itextpdf.layout.layout.LayoutPosition

public class LayoutPosition extends 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 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • STATIC

      public static final int STATIC
      Default positioning by normal rules of block and line layout.
      See Also:
    • 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:
    • 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:
    • 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:
  • Constructor Details

    • LayoutPosition

      public LayoutPosition()