Inheritance diagram for NPlot::ArrowItem:
Public Member Functions | |
ArrowItem (PointD position) | |
Default constructor : text = "" angle = 45 degrees anticlockwise from horizontal. | |
ArrowItem (PointD position, double angle) | |
Constructor. | |
ArrowItem (PointD position, double angle, string text) | |
Constructor. | |
void | Draw (System.Drawing.Graphics g, PhysicalAxis xAxis, PhysicalAxis yAxis) |
Draws the arrow on a plot surface. | |
Properties | |
string | Text |
Text associated with the arrow. | |
string | text_ = "" |
double | Angle |
Angle of arrow anti-clockwise to right horizontal in degrees. | |
double | angle_ = -45.0 |
float | PhysicalLength |
Physical length of the arrow. | |
float | physicalLength_ = 40.0f |
PointD | To |
The point the arrow points to. | |
PointD | to_ |
float | HeadSize |
Size of the arrow head sides in pixels. | |
float | headSize_ = 10.0f |
float | HeadAngle |
angle between sides of arrow head in degrees | |
float | headAngle_ = 40.0f |
Brush | TextBrush |
The brush used to draw the text associated with the arrow. | |
Color | TextColor |
Set the text to be drawn with a solid brush of this color. | |
Color | ArrowColor |
The color of the pen used to draw the arrow. | |
Font | TextFont |
The font used to draw the text associated with the arrow. | |
int | HeadOffset |
Offset the whole arrow back in the arrow direction this many pixels from the point it's pointing to. | |
int | headOffset_ = 2 |
Brush | arrowBrush_ = new SolidBrush( Color.Black ) |
Brush | textBrush_ = new SolidBrush( Color.Black ) |
Pen | pen_ = new Pen( Color.Black ) |
Font | font_ |
Private Member Functions | |
void | Init () |
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.
Definition at line 65 of file ArrowItem.cs.
|
Default constructor : text = "" angle = 45 degrees anticlockwise from horizontal.
Definition at line 81 of file ArrowItem.cs. |
|
Constructor.
Definition at line 93 of file ArrowItem.cs. |
|
Constructor.
Definition at line 107 of file ArrowItem.cs. |
|
Draws the arrow on a plot surface.
Definition at line 230 of file ArrowItem.cs. References angle_, arrowBrush_, NPlot::PhysicalAxis::Axis, font_, headAngle_, headOffset_, headSize_, pen_, physicalLength_, text_, TextBrush, textBrush_, To, to_, NPlot::Axis::WorldMax, NPlot::Axis::WorldMin, NPlot::PhysicalAxis::WorldToPhysical(), NPlot::PointD::X, and NPlot::PointD::Y. |
|
Definition at line 68 of file ArrowItem.cs. References font_. Referenced by ArrowItem(). |
|
Angle of arrow anti-clockwise to right horizontal in degrees. The code relating to this property in the Draw method is a bit weird. Internally, all rotations are clockwise [this is by accient, I wasn't concentrating when I was doing it and was half done before I realised]. The simplest way to make angle represent anti-clockwise rotation (as it is normal to do) is to make the get and set methods negate the provided value. Definition at line 143 of file ArrowItem.cs. |
|
Definition at line 153 of file ArrowItem.cs. Referenced by ArrowItem(), and Draw(). |
|
Definition at line 450 of file ArrowItem.cs. Referenced by Draw(). |
|
The color of the pen used to draw the arrow.
Definition at line 404 of file ArrowItem.cs. |
|
Definition at line 453 of file ArrowItem.cs. |
|
angle between sides of arrow head in degrees
Definition at line 211 of file ArrowItem.cs. |
|
Definition at line 221 of file ArrowItem.cs. Referenced by Draw(). |
|
Offset the whole arrow back in the arrow direction this many pixels from the point it's pointing to.
Definition at line 437 of file ArrowItem.cs. |
|
Definition at line 447 of file ArrowItem.cs. Referenced by Draw(). |
|
Size of the arrow head sides in pixels.
Definition at line 194 of file ArrowItem.cs. |
|
Definition at line 204 of file ArrowItem.cs. Referenced by Draw(). |
|
Definition at line 452 of file ArrowItem.cs. Referenced by Draw(). |
|
Physical length of the arrow.
Definition at line 160 of file ArrowItem.cs. |
|
Definition at line 170 of file ArrowItem.cs. Referenced by Draw(). |
|
Text associated with the arrow.
Definition at line 120 of file ArrowItem.cs. |
|
Definition at line 130 of file ArrowItem.cs. Referenced by ArrowItem(), and Draw(). |
|
The brush used to draw the text associated with the arrow.
Definition at line 376 of file ArrowItem.cs. Referenced by Draw(). |
|
Definition at line 451 of file ArrowItem.cs. Referenced by Draw(). |
|
Set the text to be drawn with a solid brush of this color.
Definition at line 392 of file ArrowItem.cs. |
|
The font used to draw the text associated with the arrow.
Definition at line 421 of file ArrowItem.cs. |
|
The point the arrow points to.
Definition at line 177 of file ArrowItem.cs. Referenced by Draw(). |
|
Definition at line 187 of file ArrowItem.cs. Referenced by ArrowItem(), and Draw(). |