Package com.itextpdf.layout.layout
Class LayoutResult
- java.lang.Object
-
- com.itextpdf.layout.layout.LayoutResult
-
- Direct Known Subclasses:
MinMaxWidthLayoutResult
public class LayoutResult extends java.lang.ObjectRepresents the result of contentlayouting.
-
-
Field Summary
Fields Modifier and Type Field Description protected AreaBreakareaBreakTheAreaBreakthat will be rendered by this object.protected IRenderercauseOfNothingThe first renderer to produceNOTHINGduringIRenderer.layout(LayoutContext).static intFULLThe status ofIRenderer.layout(LayoutContext)which indicates that the content was fully placed.static intNOTHINGThe status ofIRenderer.layout(LayoutContext)which indicates that the content was not placed.protected LayoutAreaoccupiedAreaThe area occupied by the content during itslayouting.protected IRendereroverflowRendererThe overflow renderer created duringlayouting.static intPARTIALThe status ofIRenderer.layout(LayoutContext)which indicates that the content was placed partially.protected IRenderersplitRendererThe split renderer created duringlayouting.protected intstatusThe status ofIRenderer.layout(LayoutContext)which indicates whether the content was added or not and, if yes, was it added fully or partially.
-
Constructor Summary
Constructors Constructor Description LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AreaBreakgetAreaBreak()Gets areaBreak value.IRenderergetCauseOfNothing()Gets the first renderer to produceNOTHINGduringIRenderer.layout(LayoutContext)LayoutAreagetOccupiedArea()Gets thelayout areaoccupied by the content duringlayouting.IRenderergetOverflowRenderer()Gets the overflow renderer created duringlayouting.IRenderergetSplitRenderer()intgetStatus()Gets the status ofIRenderer.layout(LayoutContext).LayoutResultsetAreaBreak(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).java.lang.StringtoString()
-
-
-
Field Detail
-
FULL
public static final int FULL
The status ofIRenderer.layout(LayoutContext)which indicates that the content was fully placed.- See Also:
- Constant Field Values
-
PARTIAL
public static final int PARTIAL
The status ofIRenderer.layout(LayoutContext)which indicates that the content was placed partially.- See Also:
- Constant Field Values
-
NOTHING
public static final int NOTHING
The status ofIRenderer.layout(LayoutContext)which indicates that the content was not placed.- See Also:
- Constant Field Values
-
status
protected int status
The status ofIRenderer.layout(LayoutContext)which indicates whether the content was added or not and, if yes, was it added fully or partially.
-
occupiedArea
protected LayoutArea 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
protected IRenderer splitRenderer
The split renderer created duringlayouting. This renderer will be used to draw the splitted part of content.
-
overflowRenderer
protected IRenderer overflowRenderer
The overflow renderer created duringlayouting. This renderer will be used to draw the overflowed part of content.
-
causeOfNothing
protected IRenderer causeOfNothing
The first renderer to produceNOTHINGduringIRenderer.layout(LayoutContext).
-
-
Constructor Detail
-
LayoutResult
public LayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)Creates theresult of {@link IRenderer#layout(LayoutContext) 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)- 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 Detail
-
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
public LayoutArea getOccupiedArea()
Gets thelayout areaoccupied by the content duringlayouting.- Returns:
- the
layout areaoccupied by the content
-
setSplitRenderer
public void setSplitRenderer(IRenderer splitRenderer)
Sets the splitrenderer.- Parameters:
splitRenderer- the renderer to draw the splitted part of the content
-
getOverflowRenderer
public IRenderer getOverflowRenderer()
Gets the overflow renderer created duringlayouting.- Returns:
- the
renderer
-
setOverflowRenderer
public void setOverflowRenderer(IRenderer overflowRenderer)
Sets the overflowrenderer.- Parameters:
overflowRenderer- the renderer to draw the overflowed part of the content
-
getAreaBreak
public AreaBreak getAreaBreak()
Gets areaBreak value.- Returns:
- the areaBreak value
-
setAreaBreak
public LayoutResult setAreaBreak(AreaBreak areaBreak)
Sets areaBreak value.- Parameters:
areaBreak- the areaBreak value- Returns:
- the areaBreak value
-
getCauseOfNothing
public IRenderer getCauseOfNothing()
Gets the first renderer to produceNOTHINGduringIRenderer.layout(LayoutContext)- Returns:
- the
renderer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-