Package com.itextpdf.svg.renderers.impl
Class AbstractBranchSvgNodeRenderer
java.lang.Object
com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
com.itextpdf.svg.renderers.impl.AbstractBranchSvgNodeRenderer
- All Implemented Interfaces:
-
IBranchSvgNodeRenderer
,ISvgNodeRenderer
- Direct Known Subclasses:
-
AbstractContainerSvgNodeRenderer
,AbstractGradientSvgNodeRenderer
,ClipPathSvgNodeRenderer
,DefsSvgNodeRenderer
,GroupSvgNodeRenderer
,MarkerSvgNodeRenderer
,PatternSvgNodeRenderer
,StopSvgNodeRenderer
public abstract class AbstractBranchSvgNodeRenderer extends AbstractSvgNodeRenderer implements IBranchSvgNodeRenderer
Abstract class that will be the superclass for any element that can function as a parent.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
The number of viewBox values.Fields inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
attributesAndStyles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
addChild
(ISvgNodeRenderer child) Adds a renderer as the last element of the list of children.abstract ISvgNodeRenderer
Creates a deep copy of this renderer, including it's subtree of childrenprotected final void
Create a deep copy of every child renderer and add them to the passedAbstractBranchSvgNodeRenderer
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.final List<ISvgNodeRenderer>
Gets all child renderers of this object.Methods inherited from class com.itextpdf.svg.renderers.impl.AbstractSvgNodeRenderer
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.itextpdf.svg.renderers.ISvgNodeRenderer
draw, getAttribute, getAttributeMapCopy, getObjectBoundingBox, getParent, setAttribute, setAttributesAndStyles, setParent
-
Field Details
-
VIEWBOX_VALUES_NUMBER
protected static final int VIEWBOX_VALUES_NUMBERThe number of viewBox values.- See Also:
-
-
Constructor Details
-
AbstractBranchSvgNodeRenderer
public AbstractBranchSvgNodeRenderer()
-
-
Method Details
-
doDraw
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.- Specified by:
-
doDraw
in classAbstractSvgNodeRenderer
- Parameters:
-
context
- the object that knows the place to draw this element and maintains its state
-
addChild
Description copied from interface:IBranchSvgNodeRenderer
Adds a renderer as the last element of the list of children.- Specified by:
-
addChild
in interfaceIBranchSvgNodeRenderer
- Parameters:
-
child
- any renderer
-
getChildren
Description copied from interface:IBranchSvgNodeRenderer
Gets all child renderers of this object.- Specified by:
-
getChildren
in interfaceIBranchSvgNodeRenderer
- Returns:
- the list of child renderers (in the order that they were added)
-
deepCopyChildren
Create a deep copy of every child renderer and add them to the passedAbstractBranchSvgNodeRenderer
- Parameters:
-
deepCopy
- renderer to add copies of children to
-
createDeepCopy
Description copied from interface:ISvgNodeRenderer
Creates a deep copy of this renderer, including it's subtree of children- Specified by:
-
createDeepCopy
in interfaceISvgNodeRenderer
- Returns:
- deep copy of this renderer
-