Package com.itextpdf.layout.layout
Class LayoutContext
- java.lang.Object
-
- com.itextpdf.layout.layout.LayoutContext
-
- Direct Known Subclasses:
LineLayoutContext
,PositionedLayoutContext
public class LayoutContext extends java.lang.Object
Represents the context for contentlayouting
.
-
-
Field Summary
Fields Modifier and Type Field Description protected LayoutArea
area
TheLayoutArea
for the content to be placed on.protected boolean
clippedHeight
Indicates whether the height is clipped or not.protected java.util.List<Rectangle>
floatRendererAreas
The list ofRectangle
objects.protected MarginsCollapseInfo
marginsCollapseInfo
The info about margins collapsing.
-
Constructor Summary
Constructors Constructor Description LayoutContext(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, java.util.List<Rectangle> floatedRendererAreas)
Creates the layout context.LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas, boolean clippedHeight)
Creates the layout context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayoutArea
getArea()
Gets thearea
the content to be placed on.java.util.List<Rectangle>
getFloatRendererAreas()
Gets list ofRectangle
objects.MarginsCollapseInfo
getMarginsCollapseInfo()
Gets info about margins collapsing.boolean
isClippedHeight()
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.java.lang.String
toString()
-
-
-
Field Detail
-
area
protected LayoutArea area
TheLayoutArea
for the content to be placed on.
-
marginsCollapseInfo
protected MarginsCollapseInfo marginsCollapseInfo
The info about margins collapsing.
-
floatRendererAreas
protected java.util.List<Rectangle> floatRendererAreas
The list ofRectangle
objects.
-
clippedHeight
protected boolean clippedHeight
Indicates whether the height is clipped or not.
-
-
Constructor Detail
-
LayoutContext
public LayoutContext(LayoutArea area)
Creates the layout context.- Parameters:
area
- for the content to be placed on
-
LayoutContext
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo)
Creates the layout context.- Parameters:
area
- for the content to be placed onmarginsCollapseInfo
- the info about margins collapsing
-
LayoutContext
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas)
Creates the layout context.- Parameters:
area
- for the content to be placed onmarginsCollapseInfo
- the info about margins collapsingfloatedRendererAreas
- list ofRectangle
objects
-
LayoutContext
public LayoutContext(LayoutArea area, boolean clippedHeight)
Creates the layout context.- Parameters:
area
- for the content to be placed onclippedHeight
- indicates whether the height is clipped or not
-
LayoutContext
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, java.util.List<Rectangle> floatedRendererAreas, boolean clippedHeight)
Creates the layout context.- Parameters:
area
- for the content to be placed onmarginsCollapseInfo
- the info about margins collapsingfloatedRendererAreas
- list ofRectangle
objectsclippedHeight
- indicates whether the height is clipped or not
-
-
Method Detail
-
getArea
public LayoutArea getArea()
Gets thearea
the content to be placed on.- Returns:
- the area for content layouting.
-
getMarginsCollapseInfo
public MarginsCollapseInfo getMarginsCollapseInfo()
Gets info about margins collapsing.- Returns:
- the info about margins collapsing
-
getFloatRendererAreas
public java.util.List<Rectangle> 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-