Package com.itextpdf.layout.layout
Class LayoutContext
java.lang.Object
com.itextpdf.layout.layout.LayoutContext
- Direct Known Subclasses:
-
LineLayoutContext
,PositionedLayoutContext
Represents the context for content
layouting
.
-
Field Summary
Modifier and TypeFieldDescriptionprotected LayoutArea
TheLayoutArea
for the content to be placed on.protected boolean
Indicates whether the height is clipped or not.The list ofRectangle
objects.protected MarginsCollapseInfo
The info about margins collapsing. -
Constructor Summary
ConstructorDescriptionLayoutContext
(LayoutArea area) Creates the layout context.LayoutContext
(LayoutArea area, boolean clippedHeight) Creates the layout context.LayoutContext
(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo) Creates the layout context.LayoutContext
(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas) Creates the layout context.LayoutContext
(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight) Creates the layout context. -
Method Summary
Modifier and TypeMethodDescriptiongetArea()
Gets thearea
the content to be placed on.Gets list ofRectangle
objects.Gets info about margins collapsing.boolean
Indicates whether the layout area's height is clipped or not.void
setClippedHeight
(boolean clippedHeight) Defines whether the layout area's height is clipped or not.toString()
-
Field Details
-
area
TheLayoutArea
for the content to be placed on. -
marginsCollapseInfo
The info about margins collapsing. -
floatRendererAreas
The list ofRectangle
objects. -
clippedHeight
protected boolean clippedHeightIndicates whether the height is clipped or not.
-
-
Constructor Details
-
LayoutContext
Creates the layout context.- Parameters:
-
area
- for the content to be placed on
-
LayoutContext
Creates the layout context.- Parameters:
-
area
- for the content to be placed on -
marginsCollapseInfo
- the info about margins collapsing
-
LayoutContext
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas) Creates the layout context.- Parameters:
-
area
- for the content to be placed on -
marginsCollapseInfo
- the info about margins collapsing -
floatedRendererAreas
- list ofRectangle
objects
-
LayoutContext
Creates the layout context.- Parameters:
-
area
- for the content to be placed on -
clippedHeight
- indicates whether the height is clipped or not
-
LayoutContext
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight) Creates the layout context.- 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
-
-
Method Details
-
getArea
Gets thearea
the content to be placed on.- Returns:
- the area for content layouting.
-
getMarginsCollapseInfo
Gets info about margins collapsing.- Returns:
- the info about margins collapsing
-
getFloatRendererAreas
Gets list ofRectangle
objects.- Returns:
-
list of
Rectangle
objects
-
isClippedHeight
public boolean isClippedHeight()Indicates whether the layout area's height is clipped or not.- Returns:
- whether the layout area's height is clipped or not.
-
setClippedHeight
public void setClippedHeight(boolean clippedHeight) Defines whether the layout area's height is clipped or not.- Parameters:
-
clippedHeight
- indicates whether the height is clipped or not.
-
toString
-