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


Unit: SDL_rchart
Class: TContourPlot
Declaration: [1] procedure Cross (cx, cy, dx, dy: double);
[2] procedure Cross (cx, cy, dx, dy: integer);
[3] procedure Cross (cx, cy: double; dx, dy: integer);

The method Cross draws a cross at the point [cx,cy]. The size of the cross is defined by the parameters dx and dy. The cross can be drawn in different coordinate system modes: version [1] uses world coordinates (these are the coordinates shown at the axes of the chart), version [2] uses the screen coordinates in pixels, and version [3] interprets the coordinates of the center of the cross [cx,cy] in world coordinates, while the size of the cross is interpreted at the screen (pixel) level. This allows to draw crosses which are attached to the chart data but which keep their size when zooming into or out of the chart.

The color of the cross is controlled by the properties DataColor and FillColor (in the case of a non-solid PenStyle).

The drawing cursor is set to the position [cx,cy]. The line width of the arrow may be adjusted by the property LineWidth.


Hint: In the Light Edition the number of chart elements is restricted to 1000 elements.

Last Update: 2023-Dec-13