C# 클래스 NPlot.HorizontalLine

Encapsulates functionality for drawing a horizontal line on a plot surface.
상속: IPlot
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Draw() 공개 메소드

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.
리턴 void

HorizontalLine() 공개 메소드

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

HorizontalLine() 공개 메소드

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

HorizontalLine() 공개 메소드

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.
리턴 System

SuggestXAxis() 공개 메소드

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

SuggestYAxis() 공개 메소드

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