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.ObjectRepresents the context for contentlayouting.
-
-
Field Summary
Fields Modifier and Type Field Description protected LayoutAreaareaTheLayoutAreafor the content to be placed on.protected booleanclippedHeightIndicates whether the height is clipped or not.protected java.util.List<Rectangle>floatRendererAreasThe list ofRectangleobjects.protected MarginsCollapseInfomarginsCollapseInfoThe 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 LayoutAreagetArea()Gets theareathe content to be placed on.java.util.List<Rectangle>getFloatRendererAreas()Gets list ofRectangleobjects.MarginsCollapseInfogetMarginsCollapseInfo()Gets info about margins collapsing.booleanisClippedHeight()Indicates whether the layout area's height is clipped or not.voidsetClippedHeight(boolean clippedHeight)Defines whether the layout area's height is clipped or not.java.lang.StringtoString()
-
-
-
Field Detail
-
area
protected LayoutArea area
TheLayoutAreafor the content to be placed on.
-
marginsCollapseInfo
protected MarginsCollapseInfo marginsCollapseInfo
The info about margins collapsing.
-
floatRendererAreas
protected java.util.List<Rectangle> floatRendererAreas
The list ofRectangleobjects.
-
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 ofRectangleobjects
-
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 ofRectangleobjectsclippedHeight- indicates whether the height is clipped or not
-
-
Method Detail
-
getArea
public LayoutArea getArea()
Gets theareathe 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 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-