public abstract class AbstractBranchSvgNodeRenderer extends AbstractSvgNodeRenderer implements IBranchSvgNodeRenderer
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.
|
boolean |
equals(Object other) |
List<ISvgNodeRenderer> |
getChildren()
Gets all child renderers of this object.
|
int |
hashCode() |
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParent
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
draw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParent
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
public boolean equals(Object other)
equals
in class AbstractSvgNodeRenderer
public int hashCode()
hashCode
in class AbstractSvgNodeRenderer
Copyright © 1998–2019 iText Group NV. All rights reserved.