Package com.itextpdf.layout.renderer
Class CanvasRenderer
java.lang.Object
com.itextpdf.layout.renderer.AbstractRenderer
com.itextpdf.layout.renderer.RootRenderer
com.itextpdf.layout.renderer.CanvasRenderer
- All Implemented Interfaces:
-
IPropertyContainer
,IRenderer
Represents a renderer for the
Canvas
layout element.
-
Field Summary
Fields inherited from class com.itextpdf.layout.renderer.RootRenderer
currentArea, immediateFlush, waitingDrawingElements
Fields inherited from class com.itextpdf.layout.renderer.AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties
-
Constructor Summary
ConstructorDescriptionCanvasRenderer
(Canvas canvas) Creates a CanvasRenderer from its corresponding layout object.CanvasRenderer
(Canvas canvas, boolean immediateFlush) Creates a CanvasRenderer from its corresponding layout object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a child to the current rendererprotected void
flushSingleRenderer
(IRenderer resultRenderer) ForCanvasRenderer
, this has a meaning of the renderer that will be used for relayout.protected LayoutArea
updateCurrentArea
(LayoutResult overflowResult) Methods inherited from class com.itextpdf.layout.renderer.RootRenderer
close, flush, flushWaitingDrawingElements, getCurrentArea, layout, shrinkCurrentAreaAndProcessRenderer
Methods inherited from class com.itextpdf.layout.renderer.AbstractRenderer
addAllProperties, 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, updateWidth
-
Field Details
-
canvas
-
-
Constructor Details
-
CanvasRenderer
Creates a CanvasRenderer from its corresponding layout object. SetsRootRenderer.immediateFlush
to true.- Parameters:
-
canvas
- theCanvas
which this object should manage
-
CanvasRenderer
Creates a CanvasRenderer from its corresponding layout object. Defines whether the content should be flushed immediately after additionaddChild(IRenderer)
or not- Parameters:
-
canvas
- theCanvas
which this object should manage -
immediateFlush
- the value which stands for immediate flushing
-
-
Method Details
-
addChild
Description copied from class:AbstractRenderer
Adds a child to the current renderer- Specified by:
-
addChild
in interfaceIRenderer
- Overrides:
-
addChild
in classRootRenderer
- Parameters:
-
renderer
- a child to be added
-
flushSingleRenderer
- Specified by:
-
flushSingleRenderer
in classRootRenderer
-
updateCurrentArea
- Specified by:
-
updateCurrentArea
in classRootRenderer
-
getNextRenderer
ForCanvasRenderer
, this has a meaning of the renderer that will be used for relayout.- Returns:
- relayout renderer.
-