XYCurve



XYCurve displays curves defined with x and y coordinates. 10 curves can be displayed
in one XYCurve object. For each curve, the object is connected to two float arrays
containing the x and y coordinates for the curve. An UpdateAttr is also connected to
indicate when new coordinate values are present and the curves should be redrawn.
The ranges in x and y direction can be stated with fix values, or connected to attributes
in the database. Also the number of points can be defined statically with a connection
to a database attribute.

The XYCurve can be connected to any attributes in the database. There is though a specific
class, XyCurve, that can be used to store a curve with 100 points. It contains two arrays
with 100 elements for the coordinates, together with attributes for the ranges, number of
points and update indication.

Attributes

Attribute                       Description
XY_Curve.XAttr                       Database array containing the x coordinates for the curve.
XY_Curve.YAttr                       Database array containing the y coordinates for the curve.
XY_Curve.UpdateAttr                       Boolean database attribute that indicates that the curves
                      should be updated.
XY_Curve.XMinValue                       Minimum value of range in x direction.
XY_Curve.XMaxValue                       Maximum value of range in x direction.
XY_Curve.YMinValue                       Minimum value of range in y direction.
XY_Curve.YMaxValue                       Maximum value of range in y direction.
XY_Curve.XMinValueAttr                       Database attribute that contains the minimum value of range
                      in x direction.
XY_Curve.XMaxValueAttr                       Database attribute that contains the maximum value of range
                      in x direction.
XY_Curve.YMinValueAttr                       Database attribute that contains the minimum value of range
                      in y direction.
XY_Curve.YMaxValueAttr                       Database attribute that contains the maximum value of range
                      in y direction.
XY_Curve.NoOfPointsAttr                       Integer database attribute with number of points in the curve.
XY_Curve.CurveColor                       Color of curve.
XY_Curve.FillColor                       Fill color of curve.
XY_Curve.Instances                       Adding new instances makes it possible to display several curves
                      in the same diagram. Maximum 10 curves is possible to show.
XY_Curve.NoOfPoints                       Number of points in curve.
XY_Curve.CurveLineWidth                       Line width of curve.
XY_Curve.FillCurve                       If 1 the curve is filled.
XY_Curve.HorizontalLines                       Number of horizontal lines in the diagram.
XY_Curve.VerticalLines                       Number of vertical lines in the diagram.
XY_Curve.HorizontalPadding                       The curve outside the x value range will be drawn with
                      horizonal lines from the first or last point.
XY_Curve.XMark1Attr                       Database attribute for the x position of the first vertical
                      marker line.
XY_Curve.XMark2Attr                       Database attribute for the x position of the second vertical
                      marker line.
XY_Curve.YMark1Attr                       Database attribute for the y position of the first horizonal
                      marker line.
XY_Curve.YMark2Attr                       Database attribute for the y position of the second horizontal
                      marker line.
XY_Curve.Mark1Color                       Color of the first marker lines (vertical and horizontal).
XY_Curve.Mark2Color                       Color of the second marker lines (vertical and horizontal).