C# Class NPlot.HorizontalLine

Encapsulates functionality for drawing a horizontal line on a plot surface.
Inheritance: IPlot
ファイルを表示 Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

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

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

HorizontalLine ( double yValue ) : System

Constructor

HorizontalLine ( double yValue, Color color ) : System

Constructor

HorizontalLine ( double yValue, Pen pen ) : System

Constructor

SuggestXAxis ( ) : DateTimeAxis

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

SuggestYAxis ( ) : LinearAxis

Returns a y-axis that is suitable for drawing this plot.

Method Details

Draw() public method

Draws the horizontal 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

HorizontalLine() public method

Constructor
public HorizontalLine ( double yValue ) : System
yValue double ordinate (Y) value of line.
return System

HorizontalLine() public method

Constructor
public HorizontalLine ( double yValue, Color color ) : System
yValue double ordinate (Y) value of line.
color Color draw the line using this color.
return System

HorizontalLine() public method

Constructor
public HorizontalLine ( double yValue, Pen pen ) : System
yValue double ordinate (Y) value of line.
pen System.Drawing.Pen Pen to use to draw the line.
return System

SuggestXAxis() public method

Returns null indicating that x extremities of the line are variable.
public SuggestXAxis ( ) : DateTimeAxis
return DateTimeAxis

SuggestYAxis() public method

Returns a y-axis that is suitable for drawing this plot.
public SuggestYAxis ( ) : LinearAxis
return LinearAxis