Class TextSvgBranchRenderer
ISvgNodeRenderer implementation for the <text> and <tspan> tag.
public class TextSvgBranchRenderer : AbstractSvgNodeRenderer, ISvgTextNodeRenderer, ISvgNodeRenderer
- Inheritance
-
TextSvgBranchRenderer
- Implements
- Derived
- Inherited Members
Constructors
TextSvgBranchRenderer()
public TextSvgBranchRenderer()
Fields
TEXTFLIP
Top level transformation to flip the y-axis results in the character glyphs being mirrored, this tf corrects for this behaviour
protected static readonly AffineTransform TEXTFLIP
Field Value
performRootTransformations
protected bool performRootTransformations
Field Value
Methods
AddChild(ISvgTextNodeRenderer)
public void AddChild(ISvgTextNodeRenderer child)
Parameters
child
ISvgTextNodeRenderer
ContainsAbsolutePositionChange()
public virtual bool ContainsAbsolutePositionChange()
Returns
ContainsRelativeMove()
public virtual bool ContainsRelativeMove()
Returns
CreateDeepCopy()
public override ISvgNodeRenderer CreateDeepCopy()
Returns
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
GetAbsolutePositionChanges()
public virtual float[][] GetAbsolutePositionChanges()
Returns
- float[][]
GetChildren()
public IList<ISvgTextNodeRenderer> GetChildren()
Returns
GetObjectBoundingBox(SvgDrawContext)
public override Rectangle GetObjectBoundingBox(SvgDrawContext context)
Parameters
context
SvgDrawContext
Returns
GetRelativeTranslation()
public virtual float[] GetRelativeTranslation()
Returns
- float[]
GetTextContentLength(float, PdfFont)
public virtual float GetTextContentLength(float parentFontSize, PdfFont font)
Parameters
Returns
GetTextRectangle(SvgDrawContext, Point)
public virtual TextRectangle GetTextRectangle(SvgDrawContext context, Point basePoint)
Parameters
context
SvgDrawContextbasePoint
Point
Returns
MarkWhiteSpaceProcessed()
public virtual void MarkWhiteSpaceProcessed()