Package com.itextpdf.layout.layout
Class LineLayoutResult
java.lang.Object
com.itextpdf.layout.layout.LayoutResult
com.itextpdf.layout.layout.MinMaxWidthLayoutResult
com.itextpdf.layout.layout.LineLayoutResult
Represents the result of a line
layouting
.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Indicates whether split was forced by new line symbol or not.Fields inherited from class com.itextpdf.layout.layout.MinMaxWidthLayoutResult
minMaxWidth
Fields inherited from class com.itextpdf.layout.layout.LayoutResult
areaBreak, causeOfNothing, FULL, NOTHING, occupiedArea, overflowRenderer, PARTIAL, splitRenderer, status
-
Constructor Summary
ConstructorDescriptionLineLayoutResult
(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer) Creates theresult of layouting
.LineLayoutResult
(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause) Creates theresult of layouting
. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of floats overflowed to next page.boolean
Indicates whether split was forced by new line symbol in rendered text.void
setFloatsOverflowedToNextPage
(List<IRenderer> floatsOverflowedToNextPage) Sets the list of floats overflowed to next page.setSplitForcedByNewline
(boolean isSplitForcedByNewline) Sets a flat that split was forced by new line symbol in rendered text.Methods inherited from class com.itextpdf.layout.layout.MinMaxWidthLayoutResult
getMinMaxWidth, setMinMaxWidth
Methods inherited from class com.itextpdf.layout.layout.LayoutResult
getAreaBreak, getCauseOfNothing, getOccupiedArea, getOverflowRenderer, getSplitRenderer, getStatus, setAreaBreak, setOverflowRenderer, setSplitRenderer, setStatus, toString
-
Field Details
-
splitForcedByNewline
protected boolean splitForcedByNewlineIndicates whether split was forced by new line symbol or not.
-
-
Constructor Details
-
LineLayoutResult
public LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer) Creates theresult of layouting
. TheLayoutResult.causeOfNothing
will be set as null.- Parameters:
-
status
- the status ofLineRenderer.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
-
LineLayoutResult
public LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause) Creates theresult of layouting
.- Parameters:
-
status
- the status ofLineRenderer.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 produceLayoutResult.NOTHING
-
-
Method Details
-
isSplitForcedByNewline
public boolean isSplitForcedByNewline()Indicates whether split was forced by new line symbol in rendered text. The value will be set as true if, for example, the rendered text of one of the child renderers contains '\n' symbol.- Returns:
- whether split was forced by new line or not
-
setSplitForcedByNewline
Sets a flat that split was forced by new line symbol in rendered text.- Parameters:
-
isSplitForcedByNewline
- indicates that split was forced by new line symbol in rendered text. - Returns:
-
this layout result
the setting was applied on.
-
getFloatsOverflowedToNextPage
Gets the list of floats overflowed to next page.- Returns:
- list of floats overflowed to next page
-
setFloatsOverflowedToNextPage
Sets the list of floats overflowed to next page.- Parameters:
-
floatsOverflowedToNextPage
- the floats overflowed to next page
-