C# Class NPlot.Grid

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

Méthodes publiques

Méthode Description
Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void

Draws the grid

Grid ( ) : System.Collections.Generic

Default constructor

Private Methods

Méthode 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 méthode

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.
Résultat void

Grid() public méthode

Default constructor
public Grid ( ) : System.Collections.Generic
Résultat System.Collections.Generic