Class PolylineSvgNodeRenderer
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
Methods
CreateDeepCopy()
public override ISvgNodeRenderer CreateDeepCopy()
Returns
DoDraw(SvgDrawContext)
Draws this element to a canvas-like object maintained in the context.
protected override void DoDraw(SvgDrawContext context)
Parameters
context
SvgDrawContextthe 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
SvgDrawContextmarkerVertexType
MarkerVertexType
GetAutoOrientAngle(MarkerSvgNodeRenderer, bool)
public virtual double GetAutoOrientAngle(MarkerSvgNodeRenderer marker, bool reverse)
Parameters
marker
MarkerSvgNodeRendererreverse
bool
Returns
GetObjectBoundingBox(SvgDrawContext)
public override Rectangle GetObjectBoundingBox(SvgDrawContext context)
Parameters
context
SvgDrawContext
Returns
GetPoints()
protected virtual IList<Point> GetPoints()
Returns
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
stringA 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.