C# Class NPlot.TextItem

This class implements drawing text against two physical axes.
Inheritance: IDrawable
Show file Open project: GridProtectionAlliance/openHistorian

Public Methods

Method Description
Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void

Draws the text on a plot surface.

TextItem ( PointD position, string text ) : System.Drawing

Constructor

Private Methods

Method Description
Init ( ) : void

Method Details

Draw() public method

Draws the text on a plot surface.
public Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g System.Drawing.Graphics graphics surface on which to draw
xAxis PhysicalAxis The X-Axis to draw against.
yAxis PhysicalAxis The Y-Axis to draw against.
return void

TextItem() public method

Constructor
public TextItem ( PointD position, string text ) : System.Drawing
position PointD The position the text starts.
text string The text.
return System.Drawing