Package com.itextpdf.layout.layout
Class LayoutResult
java.lang.Object
com.itextpdf.layout.layout.LayoutResult
- Direct Known Subclasses:
-
MinMaxWidthLayoutResult
Represents the result of content
layouting
.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AreaBreak
TheAreaBreak
that will be rendered by this object.protected IRenderer
The first renderer to produceNOTHING
duringIRenderer.layout(LayoutContext)
.static final int
The status ofIRenderer.layout(LayoutContext)
which indicates that the content was fully placed.static final int
The status ofIRenderer.layout(LayoutContext)
which indicates that the content was not placed.protected LayoutArea
The area occupied by the content during itslayouting
.protected IRenderer
The overflow renderer created duringlayouting
.static final int
The status ofIRenderer.layout(LayoutContext)
which indicates that the content was placed partially.protected IRenderer
The split renderer created duringlayouting
.protected int
The status ofIRenderer.layout(LayoutContext)
which indicates whether the content was added or not and, if yes, was it added fully or partially. -
Constructor Summary
ConstructorDescriptionLayoutResult
(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer) Creates theresult of layouting
.LayoutResult
(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause) Creates theresult of layouting
. -
Method Summary
Modifier and TypeMethodDescriptionGets areaBreak value.Gets the first renderer to produceNOTHING
duringIRenderer.layout(LayoutContext)
Gets thelayout area
occupied by the content duringlayouting
.Gets the overflow renderer created duringlayouting
.int
Gets the status ofIRenderer.layout(LayoutContext)
.setAreaBreak
(AreaBreak areaBreak) Sets areaBreak value.void
setOverflowRenderer
(IRenderer overflowRenderer) Sets the overflowrenderer
.void
setSplitRenderer
(IRenderer splitRenderer) Sets the splitrenderer
.void
setStatus
(int status) Sets the status ofIRenderer.layout(LayoutContext)
.toString()
-
Field Details
-
FULL
public static final int FULLThe status ofIRenderer.layout(LayoutContext)
which indicates that the content was fully placed.- See Also:
-
PARTIAL
public static final int PARTIALThe status ofIRenderer.layout(LayoutContext)
which indicates that the content was placed partially.- See Also:
-
NOTHING
public static final int NOTHINGThe status ofIRenderer.layout(LayoutContext)
which indicates that the content was not placed.- See Also:
-
status
protected int statusThe status ofIRenderer.layout(LayoutContext)
which indicates whether the content was added or not and, if yes, was it added fully or partially. -
occupiedArea
The area occupied by the content during itslayouting
. which indicates whether the content was added or not and, if yes, was it added fully or partially. -
splitRenderer
The split renderer created duringlayouting
. This renderer will be used to draw the splitted part of content. -
overflowRenderer
The overflow renderer created duringlayouting
. This renderer will be used to draw the overflowed part of content. -
areaBreak
TheAreaBreak
that will be rendered by this object. -
causeOfNothing
The first renderer to produceNOTHING
duringIRenderer.layout(LayoutContext)
.
-
-
Constructor Details
-
LayoutResult
public LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer) Creates theresult of layouting
. ThecauseOfNothing
will be set as null.- Parameters:
-
status
- the status ofIRenderer.layout(LayoutContext)
-
occupiedArea
- the area occupied by the content -
splitRenderer
- the renderer to draw the splitted part of the content -
overflowRenderer
- the renderer to draw the overflowed part of the content
-
LayoutResult
public LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause) Creates theresult of layouting
.- Parameters:
-
status
- the status ofIRenderer.layout(LayoutContext)
-
occupiedArea
- the area occupied by the content -
splitRenderer
- the renderer to draw the splitted part of the content -
overflowRenderer
- the renderer to draw the overflowed part of the content -
cause
- the first renderer to produceNOTHING
-
-
Method Details
-
getStatus
public int getStatus()Gets the status ofIRenderer.layout(LayoutContext)
.- Returns:
- the status
-
setStatus
public void setStatus(int status) Sets the status ofIRenderer.layout(LayoutContext)
.- Parameters:
-
status
- the status ofIRenderer.layout(LayoutContext)
-
getOccupiedArea
Gets thelayout area
occupied by the content duringlayouting
.- Returns:
-
the
layout area
occupied by the content
-
getSplitRenderer
- Returns:
-
the
renderer
-
setSplitRenderer
Sets the splitrenderer
.- Parameters:
-
splitRenderer
- the renderer to draw the splitted part of the content
-
getOverflowRenderer
Gets the overflow renderer created duringlayouting
.- Returns:
-
the
renderer
-
setOverflowRenderer
Sets the overflowrenderer
.- Parameters:
-
overflowRenderer
- the renderer to draw the overflowed part of the content
-
getAreaBreak
Gets areaBreak value.- Returns:
- the areaBreak value
-
setAreaBreak
Sets areaBreak value.- Parameters:
-
areaBreak
- the areaBreak value - Returns:
- the areaBreak value
-
getCauseOfNothing
Gets the first renderer to produceNOTHING
duringIRenderer.layout(LayoutContext)
- Returns:
-
the
renderer
-
toString
-