C# Class NPlot.VerticalLine

Encapsulates functionality for drawing a vertical line on a plot surface.
Inheritance: IPlot
Mostra file Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

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

Draws the vertical line plot on a GDI+ surface against the provided x and y axes.

SuggestXAxis ( ) : DateTimeAxis

Returns an x-axis that is suitable for drawing this plot.

SuggestYAxis ( ) : LinearAxis

Returns null indicating that y extremities of the line are variable.

VerticalLine ( double abscissaValue ) : System

Constructor

VerticalLine ( double abscissaValue, Color color ) : System

Constructor

VerticalLine ( double abscissaValue, Pen pen ) : System

Constructor

Method Details

Draw() public method

Draws the vertical line plot on a GDI+ surface against the provided x and y axes.
public Draw ( Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g System.Drawing.Graphics The GDI+ surface on which to draw.
xAxis PhysicalAxis The X-Axis to draw against.
yAxis PhysicalAxis The Y-Axis to draw against.
return void

SuggestXAxis() public method

Returns an x-axis that is suitable for drawing this plot.
public SuggestXAxis ( ) : DateTimeAxis
return DateTimeAxis

SuggestYAxis() public method

Returns null indicating that y extremities of the line are variable.
public SuggestYAxis ( ) : LinearAxis
return LinearAxis

VerticalLine() public method

Constructor
public VerticalLine ( double abscissaValue ) : System
abscissaValue double abscissa (X) value of line.
return System

VerticalLine() public method

Constructor
public VerticalLine ( double abscissaValue, Color color ) : System
abscissaValue double abscissa (X) value of line.
color Color draw the line using this color.
return System

VerticalLine() public method

Constructor
public VerticalLine ( double abscissaValue, Pen pen ) : System
abscissaValue double abscissa (X) value of line.
pen System.Drawing.Pen Pen to use to draw the line.
return System