C# Class NPlot.Grid

Encapsulates a Grid IDrawable object. Instances of this can be added to a PlotSurface2D to produce a grid.
Inheritance: IDrawable
Mostra file Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

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

Draws the grid

Grid ( ) : System.Collections.Generic

Default constructor

Private Methods

Method Description
DrawGridLines ( Graphics g, PhysicalAxis axis, PhysicalAxis orthogonalAxis, List a, bool horizontal, Pen p ) : void

Does all the work in drawing grid lines.

Method Details

Draw() public method

Draws the grid
public Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g Graphics The graphics surface on which to draw
xAxis PhysicalAxis The physical x axis to draw horizontal lines parallel to.
yAxis PhysicalAxis The physical y axis to draw vertical lines parallel to.
return void

Grid() public method

Default constructor
public Grid ( ) : System.Collections.Generic
return System.Collections.Generic