Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

54 SunCG!

Reference Manual Default Attributes 0 Table 4-1 Attribute All ASF's I Value I Attribute I Value INDIVIDUAL All Bundle Indices I Line Color Line Endstyle Line Type I Line Width 0.0 BEST m Line Width SCALED SOLID Specification Mode Marker Color Marker Size I Marker Size 4.0 SCALED' Marker Type DOT Specification Mode Fill Color Fill Hatch Index Fill Pattern Index Interior Style I Number of Pattern 2 0 Table Entries I Pattern Size 300,300 HOLLOW Pattern Reference Point 0,0 Pattern with Fill Color OFF Perimeter Color Perimeter Type Perimeter Width I Perimeter Width SCALED SOLID Specification Mode 0.0 Perimeter Visibility ON Fontset Fixed Font I Text Font STICK 0 Character Base.x Character Base .y Character Expansion Factor Character Height Character Path 1.0 Character Spacing 0.1 l 0.0 Character Up.x 0.0 1.0 Character Up.y 1.0 1000 Text Color I RIGHT Text Precision STRING Horizontal Text Alignment Text Continuous Alignment.x NRMAL Text Continuous 1.0 Alignment.y 1.0 Vertical Text NORMAL Alignment 4.1.

Bundled Attribute Functions The attribute environment selector functions determine if the current attributes are defined individually or by using a set of attributes (bundles). Bundles are defined by entries· in the bundle table . The CGI standard specifies the bundle table as read-only but SunCGI allows user-definition of entries in the bundle table . Each type of primitive has its own index into the bundle table, described with its specific attribute functions. The following example program illustrates how to change the appearance with bundled attributes. The program draws a polyline with a different line style and line width. 0 Version C of 17 March 1986