|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home ChartPack RChart Class TRChart Methods Arrow|
|See also: Line, DrawTo, DoubleArrow|
The method Arrow draws an arrow from the point (x1,y1) to the point (x2,y2). The arrow can be drawn in different coordinate system modes: version  uses the world coordinates (these are the coordinates shown at the axes of the chart), version  uses the screen coordinates in pixels, and versions  to  mix them. Using screen coordinates (which are declared as integer) has the effect that the arrow remains at a fixed position even if the chart is panned or zoomed. Using mixed mode coordinates ( and ) allows to implement a "stretching" effect, with one end of the arrow staying in place and the other moving with the world coordinate system, versions  and  allow to fix either the x or the y positions of the arrow.
The parameter HeadSize determines the size of the arrow's head (in pixels!). Please note that a minimum size of 4 is required to draw acceptable arrowheads.
The drawing cursor is set to the position (x2,y2). The coordinates are real coordinates of the chart window. The line width of the arrow may be adjusted by the property LineWidth.