Inheritance diagram for NPlot::Grid:
Public Types | |
enum | GridType { None = 0, Coarse = 1, Fine = 2 } |
Public Member Functions | |
Grid () | |
Default constructor. | |
void | Draw (Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis) |
Draws the grid. | |
Properties | |
GridType | HorizontalGridType |
Specifies the horizontal grid type (none, coarse or fine). | |
GridType | horizontalGridType_ |
GridType | VerticalGridType |
Specifies the vertical grid type (none, coarse, or fine). | |
GridType | verticalGridType_ |
System.Drawing.Pen | MajorGridPen |
The pen used to draw major (coarse) grid lines. | |
Pen | majorGridPen_ |
System.Drawing.Pen | MinorGridPen |
The pen used to draw minor (fine) grid lines. | |
Pen | minorGridPen_ |
Private Member Functions | |
void | DrawGridLines (Graphics g, PhysicalAxis axis, PhysicalAxis orthogonalAxis, System.Collections.ArrayList a, bool horizontal, Pen p) |
Does all the work in drawing grid lines. |
Instances of this to a PlotSurface2D instance to produce a grid.
Definition at line 64 of file Grid.cs.
|
|
|
Default constructor.
Definition at line 90 of file Grid.cs. References horizontalGridType_, majorGridPen_, minorGridPen_, and verticalGridType_. |
|
Draws the grid.
Implements NPlot::IDrawable. Definition at line 212 of file Grid.cs. References NPlot::PhysicalAxis::Axis, DrawGridLines(), horizontalGridType_, MajorGridPen, MinorGridPen, NPlot::PhysicalAxis::PhysicalMax, NPlot::PhysicalAxis::PhysicalMin, verticalGridType_, NPlot::Axis::WorldTickPositions_FirstPass(), and NPlot::Axis::WorldTickPositions_SecondPass(). |
|
Does all the work in drawing grid lines.
Definition at line 181 of file Grid.cs. References NPlot::PhysicalAxis::PhysicalMax, NPlot::PhysicalAxis::PhysicalMin, and NPlot::PhysicalAxis::WorldToPhysical(). Referenced by Draw(). |
|
Specifies the horizontal grid type (none, coarse or fine).
|
|
|
|
The pen used to draw major (coarse) grid lines.
Definition at line 142 of file Grid.cs. Referenced by Draw(). |
|
Definition at line 152 of file Grid.cs. Referenced by Grid(). |
|
The pen used to draw minor (fine) grid lines.
Definition at line 159 of file Grid.cs. Referenced by Draw(). |
|
Definition at line 169 of file Grid.cs. Referenced by Grid(). |
|
Specifies the vertical grid type (none, coarse, or fine).
|
|
|