Class AbstractBranchSvgNodeRenderer
Abstract class that will be the superclass for any element that can function as a parent.
public abstract class AbstractBranchSvgNodeRenderer : AbstractSvgNodeRenderer, IBranchSvgNodeRenderer, ISvgNodeRenderer
- Inheritance
-
AbstractBranchSvgNodeRenderer
- Implements
- Derived
- Inherited Members
Constructors
AbstractBranchSvgNodeRenderer()
protected AbstractBranchSvgNodeRenderer()
Fields
VIEWBOX_VALUES_NUMBER
The number of viewBox values.
protected const int VIEWBOX_VALUES_NUMBER = 4
Field Value
Methods
AddChild(ISvgNodeRenderer)
public void AddChild(ISvgNodeRenderer child)
Parameters
child
ISvgNodeRenderer
CreateDeepCopy()
public override abstract ISvgNodeRenderer CreateDeepCopy()
Returns
DeepCopyChildren(AbstractBranchSvgNodeRenderer)
Create a deep copy of every child renderer and add them to the passed AbstractBranchSvgNodeRenderer
protected void DeepCopyChildren(AbstractBranchSvgNodeRenderer deepCopy)
Parameters
deepCopy
AbstractBranchSvgNodeRendererrenderer to add copies of children to
DoDraw(SvgDrawContext)
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.
protected override void DoDraw(SvgDrawContext context)
Parameters
context
SvgDrawContextthe object that knows the place to draw this element and maintains its state
GetChildren()
public IList<ISvgNodeRenderer> GetChildren()