public class LayoutContext extends Object
layouting.| Modifier and Type | Field and Description |
|---|---|
protected LayoutArea |
area
The
LayoutArea for the content to be placed on. |
protected boolean |
clippedHeight
Indicates whether the height is clipped or not.
|
protected List<Rectangle> |
floatRendererAreas
The list of
Rectangle objects. |
protected MarginsCollapseInfo |
marginsCollapseInfo
The info about margins collapsing.
|
| Constructor and 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,
List<Rectangle> floatedRendererAreas)
Creates the layout context.
|
LayoutContext(LayoutArea area,
MarginsCollapseInfo marginsCollapseInfo,
List<Rectangle> floatedRendererAreas,
boolean clippedHeight)
Creates the layout context.
|
| Modifier and Type | Method and Description |
|---|---|
LayoutArea |
getArea()
Gets the
area the content to be placed on. |
List<Rectangle> |
getFloatRendererAreas()
Gets list of
Rectangle 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.
|
String |
toString() |
protected LayoutArea area
LayoutArea for the content to be placed on.protected MarginsCollapseInfo marginsCollapseInfo
protected boolean clippedHeight
public LayoutContext(LayoutArea area)
area - for the content to be placed onpublic LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo)
area - for the content to be placed onmarginsCollapseInfo - the info about margins collapsingpublic LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas)
area - for the content to be placed onmarginsCollapseInfo - the info about margins collapsingfloatedRendererAreas - list of Rectangle objectspublic LayoutContext(LayoutArea area, boolean clippedHeight)
area - for the content to be placed onclippedHeight - indicates whether the height is clipped or notpublic LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight)
area - for the content to be placed onmarginsCollapseInfo - the info about margins collapsingfloatedRendererAreas - list of Rectangle objectsclippedHeight - indicates whether the height is clipped or notpublic LayoutArea getArea()
area the content to be placed on.public MarginsCollapseInfo getMarginsCollapseInfo()
public List<Rectangle> getFloatRendererAreas()
Rectangle objects.Rectangle objectspublic boolean isClippedHeight()
public void setClippedHeight(boolean clippedHeight)
clippedHeight - indicates whether the height is clipped or not.Copyright © 1998–2022 iText Group NV. All rights reserved.