public class LineLayoutResult extends MinMaxWidthLayoutResult
layouting
.
Modifier and Type | Field and Description |
---|---|
protected boolean |
splitForcedByNewline
Indicates whether split was forced by new line symbol or not.
|
minMaxWidth
areaBreak, causeOfNothing, FULL, NOTHING, occupiedArea, overflowRenderer, PARTIAL, splitRenderer, status
Constructor and Description |
---|
LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)
|
LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause)
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSplitForcedByNewline()
Indicates whether split was forced by new line symbol in rendered text.
|
LineLayoutResult |
setSplitForcedByNewline(boolean isSplitForcedByNewline)
|
getMinMaxWidth, getNotNullMinMaxWidth, setMinMaxWidth
getAreaBreak, getCauseOfNothing, getOccupiedArea, getOverflowRenderer, getSplitRenderer, getStatus, setAreaBreak, setOverflowRenderer, setSplitRenderer, setStatus, toString
protected boolean splitForcedByNewline
public LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)
result of {@link com.itextpdf.layout.renderer.LineRenderer#layout(LayoutContext) layouting}
. The LayoutResult.causeOfNothing
will be set as null.
status
- the status of LineRenderer.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
public LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause)
result of {@link com.itextpdf.layout.renderer.LineRenderer#layout(LayoutContext) layouting}
.
status
- the status of LineRenderer.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 produce LayoutResult.NOTHING
public boolean isSplitForcedByNewline()
public LineLayoutResult setSplitForcedByNewline(boolean isSplitForcedByNewline)
isSplitForcedByNewline
- indicates that split was forced by new line symbol in rendered text.
this layout result
the setting was applied on.
setSplitForcedByNewline(boolean)
Copyright © 1998–2017 iText Group NV. All rights reserved.