public class ClipPathSvgNodeRenderer extends AbstractBranchSvgNodeRenderer
In PDF, the clipping path operators use the intersection of all its elements, not the union (as in SVG); thus, we need to draw the clipped elements multiple times if the clipping path consists of multiple elements.
VIEWBOX_VALUES_NUMBERattributesAndStyles| Constructor and Description |
|---|
ClipPathSvgNodeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
protected void |
doDraw(SvgDrawContext context)
Method that will set properties to be inherited by this branch renderer's
children and will iterate over all children in order to draw them.
|
void |
drawClippedRenderer(SvgDrawContext context)
Draw the clipped renderer.
|
com.itextpdf.kernel.geom.Rectangle |
getObjectBoundingBox(SvgDrawContext context)
Calculates the current object bounding box.
|
protected boolean |
isHidden()
Check if this renderer should draw the element based on its attributes (e.g.
|
void |
setClippedRenderer(AbstractSvgNodeRenderer clippedRenderer)
Sets the clipped renderer.
|
addChild, deepCopyChildren, getChildrencanConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getCurrentFontSize, getCurrentViewBox, getParent, parseAbsoluteLength, parseHorizontalLength, parseVerticalLength, setAttribute, setAttributesAndStyles, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParentpublic ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderercreateDeepCopy in interface ISvgNodeRenderercreateDeepCopy in class AbstractBranchSvgNodeRendererpublic com.itextpdf.kernel.geom.Rectangle getObjectBoundingBox(SvgDrawContext context)
ISvgNodeRenderercontext - the current context, for instance it contains current viewport and available
font dataRectangle representing the current object's bounding box, or null
if bounding box is undefinedprotected void doDraw(SvgDrawContext context)
AbstractBranchSvgNodeRendererdoDraw in class AbstractBranchSvgNodeRenderercontext - the object that knows the place to draw this element and
maintains its statepublic void drawClippedRenderer(SvgDrawContext context)
context - the context on which clipped renderer will be drawnpublic void setClippedRenderer(AbstractSvgNodeRenderer clippedRenderer)
clippedRenderer - the clipped rendererprotected boolean isHidden()
AbstractSvgNodeRendererisHidden in class AbstractSvgNodeRendererCopyright © 1998–2025 Apryse Group NV. All rights reserved.