public class TextLayoutResult extends MinMaxWidthLayoutResult
layout.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
splitForcedByNewline
Indicates whether split was forced by new line symbol in text or not.
|
protected boolean |
wordHasBeenSplit
Indicates whether some word was splitted during layout.
|
minMaxWidthareaBreak, causeOfNothing, FULL, NOTHING, occupiedArea, overflowRenderer, PARTIAL, splitRenderer, status| Constructor and Description |
|---|
TextLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)
|
TextLayoutResult(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.
|
boolean |
isWordHasBeenSplit()
Indicates whether some word in a rendered text was splitted during layout.
|
TextLayoutResult |
setSplitForcedByNewline(boolean isSplitForcedByNewline)
|
TextLayoutResult |
setWordHasBeenSplit(boolean wordHasBeenSplit)
Sets wordHasBeenSplit
|
getMinMaxWidth, setMinMaxWidthgetAreaBreak, getCauseOfNothing, getOccupiedArea, getOverflowRenderer, getSplitRenderer, getStatus, setAreaBreak, setOverflowRenderer, setSplitRenderer, setStatus, toStringprotected boolean wordHasBeenSplit
layout.
protected boolean splitForcedByNewline
public TextLayoutResult(int status,
LayoutArea occupiedArea,
IRenderer splitRenderer,
IRenderer overflowRenderer)
result of {@link com.itextpdf.layout.renderer.TextRenderer#layout(LayoutContext) layouting}. The LayoutResult.causeOfNothing will be set as null.
status - the status of TextRenderer.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 TextLayoutResult(int status,
LayoutArea occupiedArea,
IRenderer splitRenderer,
IRenderer overflowRenderer,
IRenderer cause)
result of {@link com.itextpdf.layout.renderer.TextRenderer#layout(LayoutContext) layouting}.
status - the status of TextRenderer.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 isWordHasBeenSplit()
layout. The value will be set as true if, for example, the rendered words width is bigger than the width of layout area.
public TextLayoutResult setWordHasBeenSplit(boolean wordHasBeenSplit)
wordHasBeenSplit
wordHasBeenSplit - indicates that some word was splitted during layout.
this layout result the setting was applied on
wordHasBeenSplit
public boolean isSplitForcedByNewline()
public TextLayoutResult 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–2020 iText Group NV. All rights reserved.