public abstract class BlockRenderer extends AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties| Modifier | Constructor and Description |
|---|---|
protected |
BlockRenderer(IElement modelElement) |
| Modifier and Type | Method and Description |
|---|---|
protected float[] |
applyRotation() |
protected void |
applyRotationLayout(Rectangle layoutBox) |
protected void |
applyVerticalAlignment() |
protected void |
beginRotationIfApplied(PdfCanvas canvas) |
protected AbstractRenderer |
createOverflowRenderer(int layoutResult) |
protected AbstractRenderer |
createSplitRenderer(int layoutResult) |
void |
draw(DrawContext drawContext)
Flushes the renderer subtree contents, i.e.
|
protected void |
endRotationIfApplied(PdfCanvas canvas) |
Rectangle |
getOccupiedAreaBBox()
Gets the bounding box that contains all content written to the
DrawContext by this IRenderer. |
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. |
addAllProperties, addChild, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyDestination, applyMargins, applyPaddings, deleteOwnProperty, deleteProperty, drawBackground, drawBorder, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getModelElement, getOccupiedArea, getOwnProperties, getOwnProperty, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isNotFittingHeight, isPositioned, move, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNextRendererprotected BlockRenderer(IElement 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.layoutContext - the description of layout area and any other additional informationprotected AbstractRenderer createSplitRenderer(int layoutResult)
protected AbstractRenderer createOverflowRenderer(int layoutResult)
public void draw(DrawContext drawContext)
IRendererPdfDocument etc.draw in interface IRendererdraw in class AbstractRendererdrawContext - contains the PdfDocument to which the renderer subtree if flushed,
the PdfCanvas on which the renderer subtree is drawn and other additional parameters
needed to perform drawingpublic Rectangle getOccupiedAreaBBox()
AbstractRendererDrawContext by this IRenderer.getOccupiedAreaBBox in class AbstractRendererRectangle that surrounds the contentprotected void applyVerticalAlignment()
protected void applyRotationLayout(Rectangle layoutBox)
protected float[] applyRotation()
protected void beginRotationIfApplied(PdfCanvas canvas)
protected void endRotationIfApplied(PdfCanvas canvas)
Copyright © 1998–2016 iText Group NV. All rights reserved.