Line Attributes

All lines, except for those used to draw markers or outline filled regions, are affected by the attributes described in this section. These include axis lines and lines drawn when a Data node is rendered with its DataType attribute having its DATA_TYPE_LINE bit set.

Attribute LineColor

LineColor is a Color-valued attribute that determines the color of the line. Its default value is Color.Black.  IMSL charting is largely made up of classes that inherit from ChartNode. Therefore AbstractChartNode.LineColor should be used to set the line color.

Attribute LineWidth

LineWidth is a double-valued attribute that determines the thickness of the lines. Its default value is 1.0. IMSL charting is largely made up of classes that inherit from ChartNode. Therefore AbstractChartNode.LineWidth should be used to set the line width and ChartNode.SetLineDashPattern should be used to set the line dash pattern.

Attribute LineDashPattern

LineDashPattern is a double-array-valued attribute that determines the line pattern used to draw the line. It defaults to a solid line. Alternate entries in the array represent the lengths of the opaque and transparent segments of the dashes. IMSL charting is largely made up of classes that inherit from ChartNode. Therefore ChartNode.SetLineDashPattern should be used to set the line dash pattern.

Some dash patterns are defined. They are DASH_PATTERN_DOT, DASH_PATTERN_DASH and DASH_PATTERN_DASH_DOT.

Samples



Visual Numerics - Developers of IMSL and PV-WAVE
http://www.vni.com/
PHONE: 713.784.3131
FAX:713.781.9260