Class LineLayoutContext

java.lang.Object
com.itextpdf.layout.layout.LayoutContext
com.itextpdf.layout.layout.LineLayoutContext

public class LineLayoutContext extends LayoutContext
Represents the context for content of a line layouting.
  • Constructor Details

    • LineLayoutContext

      public LineLayoutContext (LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight)
      Creates the context for content of a line.
      Parameters:
      area - for the content to be placed on
      marginsCollapseInfo - the info about margins collapsing
      floatedRendererAreas - list of Rectangle objects
      clippedHeight - indicates whether the height is clipped or not
    • LineLayoutContext

      public LineLayoutContext (LayoutContext layoutContext)
      Creates the context for content of a line.
      Parameters:
      layoutContext - the context for content layouting
  • Method Details

    • isFloatOverflowedToNextPageWithNothing

      public boolean isFloatOverflowedToNextPageWithNothing()
      Specifies whether some floating element within the same paragraph has already completely overflowed to the next page.
      Returns:
      true if floating element has already overflowed to the next page, false otherwise.
    • setFloatOverflowedToNextPageWithNothing

      public LineLayoutContext setFloatOverflowedToNextPageWithNothing (boolean floatOverflowedToNextPageWithNothing)
      Changes the value of property specified by isFloatOverflowedToNextPageWithNothing().
      Parameters:
      floatOverflowedToNextPageWithNothing - true if some floating element already completely overflowed.
      Returns:
      this LineLayoutContext instance.
    • getTextIndent

      public float getTextIndent()
      Gets the indent of text in the beginning of the current line.
      Returns:
      the indent of text in this line.
    • setTextIndent

      public LineLayoutContext setTextIndent (float textIndent)
      Sets the indent of text in the beginning of the current line.
      Parameters:
      textIndent - the indent of text in this line.
      Returns:
      this LineLayoutContext instance.