C# Class 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.
Inheritance: IDrawable
Afficher le fichier Open project: mono/nplot-gtk Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
Init ( ) : void

Method Details

ArrowItem() public méthode

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

ArrowItem() public méthode

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

ArrowItem() public méthode

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

Draw() public méthode

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