Table of Contents

Class PolylineSvgNodeRenderer

Namespace
iText.Svg.Renderers.Impl
Assembly
itext.svg.dll

ISvgNodeRenderer implementation for the <polyline> tag.

public class PolylineSvgNodeRenderer : AbstractSvgNodeRenderer, ISvgNodeRenderer, IMarkerCapable
Inheritance
PolylineSvgNodeRenderer
Implements
Derived
Inherited Members

Constructors

PolylineSvgNodeRenderer()

public PolylineSvgNodeRenderer()

Fields

points

A List of Point objects representing the path to be drawn by the polyline tag

protected IList<Point> points

Field Value

IList<Point>

Methods

CreateDeepCopy()

public override ISvgNodeRenderer CreateDeepCopy()

Returns

ISvgNodeRenderer

DoDraw(SvgDrawContext)

Draws this element to a canvas-like object maintained in the context.

protected override void DoDraw(SvgDrawContext context)

Parameters

context SvgDrawContext

the object that knows the place to draw this element and maintains its state

DrawMarker(SvgDrawContext, MarkerVertexType)

public virtual void DrawMarker(SvgDrawContext context, MarkerVertexType markerVertexType)

Parameters

context SvgDrawContext
markerVertexType MarkerVertexType

GetAutoOrientAngle(MarkerSvgNodeRenderer, bool)

public virtual double GetAutoOrientAngle(MarkerSvgNodeRenderer marker, bool reverse)

Parameters

marker MarkerSvgNodeRenderer
reverse bool

Returns

double

GetObjectBoundingBox(SvgDrawContext)

public override Rectangle GetObjectBoundingBox(SvgDrawContext context)

Parameters

context SvgDrawContext

Returns

Rectangle

GetPoints()

protected virtual IList<Point> GetPoints()

Returns

IList<Point>

SetPoints(string)

Parses a string of space separated x,y pairs into individual Point objects and appends them to points.

protected virtual void SetPoints(string pointsAttribute)

Parameters

pointsAttribute string

A string of space separated x,y value pairs

Remarks

Parses a string of space separated x,y pairs into individual Point objects and appends them to points. Throws an SvgProcessingException if pointsAttribute does not have a valid list of numerical x,y pairs.