public class LineRenderer extends AbstractRenderer
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
levels |
protected float |
maxAscent |
protected float |
maxDescent |
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties| Constructor and Description |
|---|
LineRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected LineRenderer |
adjustChildrenYLine() |
protected int |
baseCharactersCount()
Returns the number of base characters, i.e.
|
protected boolean |
containsImage() |
protected LineRenderer |
createOverflowRenderer() |
protected LineRenderer |
createSplitRenderer() |
protected Float |
getFirstYLineRecursively()
Gets the first yLine of the nested children recursively.
|
float |
getLeadingValue(Leading leading) |
float |
getMaxAscent() |
float |
getMaxDescent() |
IRenderer |
getNextRenderer()
Gets a new instance of this class to be used as a next renderer, after this renderer is used, if
IRenderer.layout(LayoutContext) is called more than once. |
protected int |
getNumberOfSpaces() |
float |
getYLine() |
protected void |
justify(float width) |
LineLayoutResult |
layout(LayoutContext layoutContext)
This method simulates positioning of the renderer, including all of its children, and returns
the
LayoutResult, representing the layout result, including occupied area, status, i.e. |
protected int |
length()
Gets the total lengths of characters in this line.
|
protected LineRenderer[] |
split() |
String |
toString() |
protected LineRenderer |
trimLast() |
addAllProperties, addChild, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyDestination, applyMargins, applyPaddings, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getInnerAreaBBox, getModelElement, getOccupiedArea, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isNotFittingHeight, isPositioned, move, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setPropertyprotected float maxAscent
protected float maxDescent
protected byte[] levels
public LineLayoutResult layout(LayoutContext layoutContext)
IRendererLayoutResult, representing the layout result, including occupied area, status, i.e.
if there was enough place to fit the renderer subtree, etc.
LayoutResult can be extended to return custom layout results for custom elements, e.g.
TextRenderer uses TextLayoutResult as its result.
This method can be called standalone to learn how much area the renderer subtree needs, or can be called
before IRenderer.draw(DrawContext), to prepare the renderer to be flushed to the output stream.layoutContext - the description of layout area and any other additional informationpublic float getMaxAscent()
public float getMaxDescent()
public float getYLine()
public float getLeadingValue(Leading leading)
public IRenderer getNextRenderer()
IRendererIRenderer.layout(LayoutContext) is called more than once.protected Float getFirstYLineRecursively()
AbstractRenderergetFirstYLineRecursively in class AbstractRendererprotected void justify(float width)
protected int getNumberOfSpaces()
protected int length()
protected int baseCharactersCount()
public String toString()
toString in class AbstractRendererprotected LineRenderer createSplitRenderer()
protected LineRenderer createOverflowRenderer()
protected LineRenderer[] split()
protected LineRenderer adjustChildrenYLine()
protected LineRenderer trimLast()
protected boolean containsImage()
Copyright © 1998–2016 iText Group NV. All rights reserved.