public class CanvasRenderer extends RootRenderer
| Modifier and Type | Field and Description |
|---|---|
protected Canvas |
canvas |
currentArea, currentPageNumber, immediateFlush, waitingDrawingElementschildRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, 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, shrinkCurrentAreaAndProcessRendereraddAllProperties, alignChildHorizontally, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBackgroundArea, clipBorderArea, createXObject, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, endElementOpacityApplying, endTransformationIfApplied, getBackgroundArea, 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, updateWidthprotected Canvas canvas
public CanvasRenderer(Canvas canvas)
RootRenderer.immediateFlush to true.canvas - the Canvas which this object should managepublic CanvasRenderer(Canvas canvas, boolean immediateFlush)
addChild(IRenderer) or notcanvas - the Canvas which this object should manageimmediateFlush - the value which stands for immediate flushingpublic void addChild(IRenderer renderer)
AbstractRendereraddChild in interface IRendereraddChild in class RootRendererrenderer - a child to be addedprotected void flushSingleRenderer(IRenderer resultRenderer)
flushSingleRenderer in class RootRendererprotected LayoutArea updateCurrentArea(LayoutResult overflowResult)
updateCurrentArea in class RootRendererpublic 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.