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
FieldsFields inherited from class com.itextpdf.layout.renderer.RootRenderer
currentArea, immediateFlush, waitingDrawingElementsFields inherited from class com.itextpdf.layout.renderer.AbstractRenderer
childRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties -
Constructor Summary
ConstructorsConstructorDescriptionCanvasRenderer(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 TypeMethodDescriptionvoidAdds a child to the current rendererprotected voidflushSingleRenderer(IRenderer resultRenderer) ForCanvasRenderer, this has a meaning of the renderer that will be used for relayout.protected LayoutAreaupdateCurrentArea(LayoutResult overflowResult) Methods inherited from class com.itextpdf.layout.renderer.RootRenderer
close, flush, flushWaitingDrawingElements, getCurrentArea, layout, shrinkCurrentAreaAndProcessRendererMethods 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, 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, retrieveResolvedDeclaredHeight, 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.immediateFlushto true.- Parameters:
-
canvas- theCanvaswhich 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- theCanvaswhich this object should manage -
immediateFlush- the value which stands for immediate flushing
-
-
Method Details
-
addChild
Description copied from class:AbstractRendererAdds a child to the current renderer- Specified by:
-
addChildin interfaceIRenderer - Overrides:
-
addChildin classRootRenderer - Parameters:
-
renderer- a child to be added
-
flushSingleRenderer
- Specified by:
-
flushSingleRendererin classRootRenderer
-
updateCurrentArea
- Specified by:
-
updateCurrentAreain classRootRenderer
-
getNextRenderer
ForCanvasRenderer, this has a meaning of the renderer that will be used for relayout.- Returns:
- relayout renderer.
-