public class LineLayoutContext extends LayoutContext
layouting.
area, clippedHeight, floatRendererAreas, marginsCollapseInfo| Constructor and Description |
|---|
LineLayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight)
Creates the context for content of a line.
|
LineLayoutContext(LayoutContext layoutContext)
Creates the context for content of a line.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getTextIndent()
Gets the indent of text in the beginning of the current line.
|
boolean |
isFloatOverflowedToNextPageWithNothing()
Specifies whether some floating element within the same paragraph has already completely overflowed to the next page.
|
LineLayoutContext |
setFloatOverflowedToNextPageWithNothing(boolean floatOverflowedToNextPageWithNothing)
Changes the value of property specified by isFloatOverflowedToNextPageWithNothing().
|
LineLayoutContext |
setTextIndent(float textIndent)
Sets the indent of text in the beginning of the current line.
|
getArea, getFloatRendererAreas, getMarginsCollapseInfo, isClippedHeight, setClippedHeight, toStringpublic LineLayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight)
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
public LineLayoutContext(LayoutContext layoutContext)
layoutContext - the context for content layouting
public boolean isFloatOverflowedToNextPageWithNothing()
public LineLayoutContext setFloatOverflowedToNextPageWithNothing(boolean floatOverflowedToNextPageWithNothing)
isFloatOverflowedToNextPageWithNothing().
floatOverflowedToNextPageWithNothing - true if some floating element already completely overflowed.
LineLayoutContext instance.
public float getTextIndent()
public LineLayoutContext setTextIndent(float textIndent)
textIndent - the indent of text in this line.
LineLayoutContext instance.
Copyright © 1998–2022 iText Group NV. All rights reserved.