public class CanvasRenderer extends RootRenderer
Modifier and Type | Field and Description |
---|---|
protected Canvas |
canvas |
currentArea, currentPageNumber, immediateFlush
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, parent, positionedRenderers, properties
Constructor and Description |
---|
CanvasRenderer(Canvas canvas)
Creates a CanvasRenderer from its corresponding layout object.
|
CanvasRenderer(Canvas canvas, boolean immediateFlush)
Creates a CanvasRenderer from its corresponding layout object.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(IRenderer renderer)
Adds a child to the current renderer
|
protected void |
flushSingleRenderer(IRenderer resultRenderer) |
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 LayoutArea |
updateCurrentArea(LayoutResult overflowResult) |
close, flush, getCurrentArea, layout
addAllProperties, alignChildHorizontally, applyAbsolutePositioningTranslation, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyMargins, applyMargins, applyPaddings, applyPaddings, calculateAbsolutePdfBBox, calculateBBox, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, getBorderAreaBBox, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getMargins, getModelElement, getOccupiedArea, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getPaddings, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, hasOwnOrModelProperty, hasOwnProperty, hasProperty, initElementAreas, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isPositioned, isRelativePosition, move, rectangleToPointsList, retrieveHeight, retrieveUnitValue, retrieveWidth, setBorders, setParent, setProperty, toString, transformPoints
protected Canvas canvas
public CanvasRenderer(Canvas canvas)
RootRenderer.immediateFlush
to true.
canvas
- the Canvas
which this object should manage
public CanvasRenderer(Canvas canvas, boolean immediateFlush)
addChild(IRenderer)
or not
canvas
- the Canvas
which this object should manage
immediateFlush
- the value which stands for immediate flushing
public void addChild(IRenderer renderer)
AbstractRenderer
addChild
in interface IRenderer
addChild
in class RootRenderer
renderer
- a child to be added
protected void flushSingleRenderer(IRenderer resultRenderer)
flushSingleRenderer
in class RootRenderer
protected LayoutArea updateCurrentArea(LayoutResult overflowResult)
updateCurrentArea
in class RootRenderer
public IRenderer getNextRenderer()
IRenderer.layout(LayoutContext)
is called more than once.
Copyright © 1998–2016 iText Group NV. All rights reserved.