C# Class OxyPlot.SvgRenderContext

The svg render context.
Inheritance: OxyPlot.RenderContextBase, IDisposable
Mostra file Open project: GNOME/longomatch Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes the svg writer.

Complete ( ) : void

Completes the svg element.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DrawEllipse ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void

Draws an ellipse.

DrawLine ( IList points, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void

Draws the polyline from the specified points.

DrawPolygon ( IList points, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void

Draws the polygon from the specified points. The polygon can have stroke and/or fill.

DrawRectangle ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void

Draws the rectangle.

DrawText ( OxyPlot.ScreenPoint p, string text, OxyPlot.OxyColor c, string fontFamily, double fontSize, double fontWeight, double rotate, HorizontalAlignment halign, VerticalAlignment valign, OxyPlot.OxySize maxSize ) : void

Draws the text.

Flush ( ) : void

Flushes this instance.

MeasureText ( string text, string fontFamily, double fontSize, double fontWeight ) : OxyPlot.OxySize

Measures the text.

SvgRenderContext ( Stream s, double width, double height, bool isDocument, ITextMeasurer textMeasurer, OxyPlot.OxyColor background ) : System

Initializes a new instance of the SvgRenderContext class.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Method Details

Close() public method

Closes the svg writer.
public Close ( ) : void
return void

Complete() public method

Completes the svg element.
public Complete ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

DrawEllipse() public method

Draws an ellipse.
public DrawEllipse ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void
rect OxyPlot.OxyRect The rectangle.
fill OxyPlot.OxyColor The fill color.
stroke OxyPlot.OxyColor The stroke color.
thickness double The thickness.
return void

DrawLine() public method

Draws the polyline from the specified points.
public DrawLine ( IList points, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void
points IList The points.
stroke OxyPlot.OxyColor The stroke color.
thickness double The stroke thickness.
dashArray double The dash array.
lineJoin OxyPenLineJoin The line join type.
aliased bool if set to true the shape will be aliased.
return void

DrawPolygon() public method

Draws the polygon from the specified points. The polygon can have stroke and/or fill.
public DrawPolygon ( IList points, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness, double dashArray, OxyPenLineJoin lineJoin, bool aliased ) : void
points IList The points.
fill OxyPlot.OxyColor The fill color.
stroke OxyPlot.OxyColor The stroke color.
thickness double The stroke thickness.
dashArray double The dash array.
lineJoin OxyPenLineJoin The line join type.
aliased bool if set to true the shape will be aliased.
return void

DrawRectangle() public method

Draws the rectangle.
public DrawRectangle ( OxyPlot.OxyRect rect, OxyPlot.OxyColor fill, OxyPlot.OxyColor stroke, double thickness ) : void
rect OxyPlot.OxyRect The rectangle.
fill OxyPlot.OxyColor The fill color.
stroke OxyPlot.OxyColor The stroke color.
thickness double The stroke thickness.
return void

DrawText() public method

Draws the text.
public DrawText ( OxyPlot.ScreenPoint p, string text, OxyPlot.OxyColor c, string fontFamily, double fontSize, double fontWeight, double rotate, HorizontalAlignment halign, VerticalAlignment valign, OxyPlot.OxySize maxSize ) : void
p OxyPlot.ScreenPoint The p.
text string The text.
c OxyPlot.OxyColor The c.
fontFamily string The font family.
fontSize double Size of the font.
fontWeight double The font weight.
rotate double The rotate.
halign HorizontalAlignment The horizontal alignment.
valign VerticalAlignment The vertical alignment.
maxSize OxyPlot.OxySize Size of the max.
return void

Flush() public method

Flushes this instance.
public Flush ( ) : void
return void

MeasureText() public method

Measures the text.
public MeasureText ( string text, string fontFamily, double fontSize, double fontWeight ) : OxyPlot.OxySize
text string The text.
fontFamily string The font family.
fontSize double Size of the font.
fontWeight double The font weight.
return OxyPlot.OxySize

SvgRenderContext() public method

Initializes a new instance of the SvgRenderContext class.
public SvgRenderContext ( Stream s, double width, double height, bool isDocument, ITextMeasurer textMeasurer, OxyPlot.OxyColor background ) : System
s Stream The s.
width double The width.
height double The height.
isDocument bool Create an SVG document if set to true.
textMeasurer ITextMeasurer The text measurer.
background OxyPlot.OxyColor The background.
return System