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
FieldsModifier and TypeFieldDescriptionprotected LayoutAreaTheLayoutAreafor the content to be placed on.protected booleanIndicates whether the height is clipped or not.The list ofRectangleobjects.protected MarginsCollapseInfoThe info about margins collapsing. -
Constructor Summary
ConstructorsConstructorDescriptionLayoutContext(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 theareathe content to be placed on.Gets list ofRectangleobjects.Gets info about margins collapsing.booleanIndicates whether the layout area's height is clipped or not.voidsetClippedHeight(boolean clippedHeight) Defines whether the layout area's height is clipped or not.toString()
-
Field Details
-
area
TheLayoutAreafor the content to be placed on. -
marginsCollapseInfo
The info about margins collapsing. -
floatRendererAreas
The list ofRectangleobjects. -
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 ofRectangleobjects
-
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 ofRectangleobjects -
clippedHeight- indicates whether the height is clipped or not
-
-
Method Details
-
getArea
Gets theareathe 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 ofRectangleobjects.- Returns:
-
list of
Rectangleobjects
-
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
-