public class ParagraphRenderer extends BlockRenderer
| Modifier and Type | Field and Description |
|---|---|
protected List<LineRenderer> |
lines |
protected float |
previousDescent |
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties| Constructor and Description |
|---|
ParagraphRenderer(Paragraph modelElement) |
| Modifier and Type | Method and Description |
|---|---|
protected ParagraphRenderer |
createOverflowRenderer() |
protected ParagraphRenderer |
createSplitRenderer() |
void |
drawChildren(DrawContext drawContext)
Performs the drawing operation for all
children
of this renderer. |
<T1> T1 |
getDefaultProperty(int property)
Gets the default property from this entity.
|
protected Float |
getFirstYLineRecursively()
Gets the first yLine of the nested children recursively.
|
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. |
LayoutResult |
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. |
void |
move(float dxRight,
float dyUp)
Moves the renderer subtree by the specified offset.
|
protected ParagraphRenderer[] |
split() |
String |
toString() |
applyRotation, applyRotationLayout, applyVerticalAlignment, beginRotationIfApplied, createOverflowRenderer, createSplitRenderer, draw, endRotationIfApplied, getOccupiedAreaBBoxaddAllProperties, addChild, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyDestination, applyMargins, applyPaddings, deleteOwnProperty, deleteProperty, drawBackground, drawBorder, getBorderAreaBBox, getBorders, getChildRenderers, getInnerAreaBBox, getModelElement, getOccupiedArea, getOwnProperties, getOwnProperty, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isNotFittingHeight, isPositioned, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setPropertyprotected float previousDescent
protected List<LineRenderer> lines
public ParagraphRenderer(Paragraph modelElement)
public LayoutResult 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.layout in interface IRendererlayout in class BlockRendererlayoutContext - the description of layout area and any other additional informationpublic IRenderer getNextRenderer()
IRendererIRenderer.layout(LayoutContext) is called more than once.public <T1> T1 getDefaultProperty(int property)
IPropertyContainergetDefaultProperty in interface IPropertyContainergetDefaultProperty in class AbstractRendererT1 - the return type associated with the propertyproperty - the property to be retrievednull will be returnedprotected ParagraphRenderer createOverflowRenderer()
protected ParagraphRenderer createSplitRenderer()
protected ParagraphRenderer[] split()
public String toString()
toString in class AbstractRendererpublic void drawChildren(DrawContext drawContext)
AbstractRendererchildren
of this renderer.drawChildren in class AbstractRendererdrawContext - the context (canvas, document, etc) of this drawing operation.public void move(float dxRight,
float dyUp)
IRenderermove in interface IRenderermove in class AbstractRendererdxRight - the x-axis offset in points. Positive value will move the renderer subtree to the right.dyUp - the y-axis offset in points. Positive value will move the renderer subtree to the top.protected Float getFirstYLineRecursively()
AbstractRenderergetFirstYLineRecursively in class AbstractRendererCopyright © 1998–2016 iText Group NV. All rights reserved.