C# Class NPlot.HorizontalLine

Encapsulates functionality for drawing a horizontal line on a plot surface.
Inheritance: IPlot
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 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 méthode

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

HorizontalLine() public méthode

Constructor
public HorizontalLine ( double yValue ) : System
yValue double ordinate (Y) value of line.
Résultat System

HorizontalLine() public méthode

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

HorizontalLine() public méthode

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

SuggestXAxis() public méthode

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

SuggestYAxis() public méthode

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