Class LayoutResult
java.lang.Object
com.itextpdf.layout.layout.LayoutResult
- Direct Known Subclasses:
MinMaxWidthLayoutResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AreaBreakTheAreaBreakthat will be rendered by this object.protected IRendererThe first renderer to produceNOTHINGduringIRenderer.layout(LayoutContext).static final intThe status ofIRenderer.layout(LayoutContext)which indicates that the content was fully placed.static final intThe status ofIRenderer.layout(LayoutContext)which indicates that the content was not placed.protected LayoutAreaThe area occupied by the content during itslayouting.protected IRendererThe overflow renderer created duringlayouting.static final intThe status ofIRenderer.layout(LayoutContext)which indicates that the content was placed partially.protected IRendererThe split renderer created duringlayouting.protected intThe status ofIRenderer.layout(LayoutContext)which indicates whether the content was added or not and, if yes, was it added fully or partially. -
Constructor Summary
ConstructorsConstructorDescriptionLayoutResult(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 produceNOTHINGduringIRenderer.layout(LayoutContext)Gets thelayout areaoccupied by the content duringlayouting.Gets the overflow renderer created duringlayouting.intGets the status ofIRenderer.layout(LayoutContext).setAreaBreak(AreaBreak areaBreak) Sets areaBreak value.voidsetOverflowRenderer(IRenderer overflowRenderer) Sets the overflowrenderer.voidsetSplitRenderer(IRenderer splitRenderer) Sets the splitrenderer.voidsetStatus(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
-
overflowRenderer
-
areaBreak
-
causeOfNothing
The first renderer to produceNOTHINGduringIRenderer.layout(LayoutContext).
-
-
Constructor Details
-
LayoutResult
public LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer) Creates theresult of layouting. ThecauseOfNothingwill be set as null.- Parameters:
status- the status ofIRenderer.layout(LayoutContext)occupiedArea- the area occupied by the contentsplitRenderer- the renderer to draw the splitted part of the contentoverflowRenderer- 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 contentsplitRenderer- the renderer to draw the splitted part of the contentoverflowRenderer- the renderer to draw the overflowed part of the contentcause- the first renderer to produceNOTHING
-
-
Method Details
-
getStatus
-
setStatus
public void setStatus(int status) Sets the status ofIRenderer.layout(LayoutContext).- Parameters:
status- the status ofIRenderer.layout(LayoutContext)
-
getOccupiedArea
Gets thelayout areaoccupied by the content duringlayouting.- Returns:
- the
layout areaoccupied by the content
-
getSplitRenderer
-
setSplitRenderer
-
getOverflowRenderer
-
setOverflowRenderer
-
getAreaBreak
-
setAreaBreak
Sets areaBreak value.- Parameters:
areaBreak- the areaBreak value- Returns:
- the areaBreak value
-
getCauseOfNothing
Gets the first renderer to produceNOTHINGduringIRenderer.layout(LayoutContext)- Returns:
- the
renderer
-
toString
-