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
Mostra file Open project: mono/nplot-gtk Class Usage Examples

Public Methods

Method 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

Method Description
Init ( ) : void

Method Details

ArrowItem() public method

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

ArrowItem() public method

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.
return System

ArrowItem() public method

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.
return System

Draw() public method

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.
return void