Package com.itextpdf.layout.layout
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 linelayouting.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanfloatOverflowedToNextPageWithNothingprivate floattextIndent-
Fields inherited from class com.itextpdf.layout.layout.LayoutContext
area, clippedHeight, floatRendererAreas, marginsCollapseInfo
-
-
Constructor Summary
Constructors Constructor Description LineLayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas, boolean clippedHeight)Creates the context for content of a line.LineLayoutContext(LayoutContext layoutContext)Creates the context for content of a line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetTextIndent()Gets the indent of text in the beginning of the current line.booleanisFloatOverflowedToNextPageWithNothing()Specifies whether some floating element within the same paragraph has already completely overflowed to the next page.LineLayoutContextsetFloatOverflowedToNextPageWithNothing(boolean floatOverflowedToNextPageWithNothing)Changes the value of property specified byisFloatOverflowedToNextPageWithNothing().LineLayoutContextsetTextIndent(float textIndent)Sets the indent of text in the beginning of the current line.-
Methods inherited from class com.itextpdf.layout.layout.LayoutContext
getArea, getFloatRendererAreas, getMarginsCollapseInfo, isClippedHeight, setClippedHeight, toString
-
-
-
-
Constructor Detail
-
LineLayoutContext
public LineLayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas, boolean clippedHeight)
Creates the context for content of a line.- Parameters:
area- for the content to be placed onmarginsCollapseInfo- the info about margins collapsingfloatedRendererAreas- list ofRectangleobjectsclippedHeight- 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 Detail
-
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 byisFloatOverflowedToNextPageWithNothing().- Parameters:
floatOverflowedToNextPageWithNothing- true if some floating element already completely overflowed.- Returns:
- this
LineLayoutContextinstance.
-
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
LineLayoutContextinstance.
-
-