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 on
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo)
area
- for the content to be placed on
marginsCollapseInfo
- the info about margins collapsing
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas)
area
- for the content to be placed on
marginsCollapseInfo
- the info about margins collapsing
floatedRendererAreas
- list of Rectangle
objects
public LayoutContext(LayoutArea area, boolean clippedHeight)
area
- for the content to be placed on
clippedHeight
- indicates whether the height is clipped or not
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, List<Rectangle> floatedRendererAreas, boolean clippedHeight)
area
- for the content to be placed on
marginsCollapseInfo
- the info about margins collapsing
floatedRendererAreas
- list of Rectangle
objects
clippedHeight
- indicates whether the height is clipped or not
public LayoutArea getArea()
area
the content to be placed on.
public MarginsCollapseInfo getMarginsCollapseInfo()
public List<Rectangle> getFloatRendererAreas()
Rectangle
objects.
Rectangle
objects
public 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.