C# 클래스 NPlot.ArrowItem

An Arrow IDrawable, with a text label that is automatically nicely positioned at the non-pointy end of the arrow. Future feature idea: have constructor that takes a dataset, and have the arrow know how to automatically set it's angle to avoid the data.
상속: IDrawable
파일 보기 프로젝트 열기: mono/nplot-gtk 1 사용 예제들

공개 메소드들

메소드 설명
ArrowItem ( PointD position ) : System

Default constructor : text = "" angle = 45 degrees anticlockwise from horizontal.

ArrowItem ( PointD position, double angle ) : System

Constructor

ArrowItem ( PointD position, double angle, string text ) : System

Constructor

Draw ( System g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void

Draws the arrow on a plot surface.

비공개 메소드들

메소드 설명
Init ( ) : void

메소드 상세

ArrowItem() 공개 메소드

Default constructor : text = "" angle = 45 degrees anticlockwise from horizontal.
public ArrowItem ( PointD position ) : System
position PointD The position the arrow points to.
리턴 System

ArrowItem() 공개 메소드

Constructor
public ArrowItem ( PointD position, double angle ) : System
position PointD The position the arrow points to.
angle double angle of arrow with respect to x axis.
리턴 System

ArrowItem() 공개 메소드

Constructor
public ArrowItem ( PointD position, double angle, string text ) : System
position PointD The position the arrow points to.
angle double angle of arrow with respect to x axis.
text string The text associated with the arrow.
리턴 System

Draw() 공개 메소드

Draws the arrow on a plot surface.
public Draw ( System g, PhysicalAxis xAxis, PhysicalAxis yAxis ) : void
g System graphics surface on which to draw
xAxis PhysicalAxis The X-Axis to draw against.
yAxis PhysicalAxis The Y-Axis to draw against.
리턴 void