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, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBackgroundArea, clipBorderArea, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, endElementOpacityApplying, endTransformationIfApplied, getBorderAreaBBox, getBorderRadii, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, getMargins, getMinMaxWidth, getModelElement, getOccupiedArea, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getPaddings, getParent, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, getPropertyAsTransparentColor, getPropertyAsUnitValue, hasAbsoluteUnitValue, hasOwnOrModelProperty, hasOwnProperty, hasProperty, hasRelativeUnitValue, initElementAreas, isAbsolutePosition, isBorderBoxSizing, isFirstOnRootArea, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isOverflowFit, isOverflowProperty, isOverflowProperty, isOverflowProperty, isPositioned, isRelativePosition, isStaticLayout, move, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
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–2020 iText Group NV. All rights reserved.