Package com.itextpdf.layout.layout
Class LineLayoutContext
java.lang.Object
com.itextpdf.layout.layout.LayoutContext
com.itextpdf.layout.layout.LineLayoutContext
Represents the context for content of a line
layouting
.
-
Field Summary
Fields inherited from class com.itextpdf.layout.layout.LayoutContext
area, clippedHeight, floatRendererAreas, marginsCollapseInfo
-
Constructor Summary
ConstructorDescriptionLineLayoutContext
(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. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Gets the indent of text in the beginning of the current line.boolean
Specifies whether some floating element within the same paragraph has already completely overflowed to the next page.setFloatOverflowedToNextPageWithNothing
(boolean floatOverflowedToNextPageWithNothing) Changes the value of property specified byisFloatOverflowedToNextPageWithNothing()
.setTextIndent
(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 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 ofRectangle
objects -
clippedHeight
- indicates whether the height is clipped or not
-
LineLayoutContext
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 byisFloatOverflowedToNextPageWithNothing()
.- 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
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.
-