public abstract class AbstractBranchSvgNodeRenderer extends AbstractSvgNodeRenderer implements IBranchSvgNodeRenderer
Modifier and Type | Field and Description |
---|---|
protected static int |
VIEWBOX_VALUES_NUMBER
The number of viewBox values.
|
attributesAndStyles
Constructor and Description |
---|
AbstractBranchSvgNodeRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ISvgNodeRenderer child)
Adds a renderer as the last element of the list of children.
|
abstract ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
protected void |
deepCopyChildren(AbstractBranchSvgNodeRenderer deepCopy)
Create a deep copy of every child renderer and add them to the passed AbstractBranchSvgNodeRenderer
|
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.
|
List<ISvgNodeRenderer> |
getChildren()
Gets all child renderers of this object.
|
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getObjectBoundingBox, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParent
protected static final int VIEWBOX_VALUES_NUMBER
protected void doDraw(SvgDrawContext context)
doDraw
in class AbstractSvgNodeRenderer
context
- the object that knows the place to draw this element and maintains its state
public final void addChild(ISvgNodeRenderer child)
IBranchSvgNodeRenderer
addChild
in interface IBranchSvgNodeRenderer
child
- any renderer
public final List<ISvgNodeRenderer> getChildren()
IBranchSvgNodeRenderer
getChildren
in interface IBranchSvgNodeRenderer
protected final void deepCopyChildren(AbstractBranchSvgNodeRenderer deepCopy)
AbstractBranchSvgNodeRenderer
deepCopy
- renderer to add copies of children to
public abstract ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderer
createDeepCopy
in interface ISvgNodeRenderer
Copyright © 1998–2021 iText Group NV. All rights reserved.