public class CanvasRenderer extends RootRenderer
Modifier and Type | Field and Description |
---|---|
protected Canvas |
canvas |
currentArea, currentPageNumber, immediateFlush, waitingDrawingElements
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()
For CanvasRenderer , this has a meaning of the renderer that will be used for relayout.
|
protected LayoutArea |
updateCurrentArea(LayoutResult overflowResult) |
close, flush, flushWaitingDrawingElements, getCurrentArea, layout, shrinkCurrentAreaAndProcessRenderer
addAllProperties, alignChildHorizontally, alignChildHorizontally, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTranformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBorderArea, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, endElementOpacityApplying, endTranformationIfApplied, getBorderAreaBBox, getBorderRadii, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, getMargins, getMinMaxWidth, getMinMaxWidth, getModelElement, getOccupiedArea, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getPaddings, getParent, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, getPropertyAsTransparentColor, getPropertyAsUnitValue, hasAbsoluteUnitValue, hasOwnOrModelProperty, hasOwnProperty, hasProperty, initElementAreas, isAbsolutePosition, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isPositioned, isRelativePosition, isStaticLayout, move, overrideHeightProperties, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeightsOnSplit
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()
CanvasRenderer
, this has a meaning of the renderer that will be used for relayout.
Copyright © 1998–2018 iText Group NV. All rights reserved.