GDDM-GKS V1R1 Programming Guide and Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


GSLN

GDDM-GKS V1R1 Programming Guide and Reference
SC33-0334-00



Purpose



 GSLN  (ltype)
   
 APL code  1318
 GKS RCP code  X'38001300' (939528960)
   


Function: To set linetype.

Attribute function. Sets the current line type for polyline output primitives.

Parameters


ltype (specified by user) (fullword integer)
The identifier for a specific line type. This should be either a negative value indicating an implementation-dependent line type or one of the following:

1 (GLSOLI)
Solid
2 (GLDASH)
Dash
3 (GLDOT)
Dotted
4 (GLDASD)
Dash-dotted

Operating states


GKOP, WSOP, WSAC, SGOP

Related functions


Polyline (GPL), Set aspect source flags (GSASF), Inquire polyline facilities (GQPLF), Inquire linetype (GQLN)

Description


This function selects the current polyline line type. The current line type in the GKS state list is set to the value given by ltype. This value is used for the display of subsequent polyline primitives created when the current linetype aspect source flag (ASF) is individual.

The line types specified by negative values of ltype are implementation-dependent and availability is workstation-dependent. The following table shows the values for ltype supported by GDDM-GKS.


 Value  Line type
 -4  Solid line (same as 1)
 -3  Dash-double-dot line
 -2  Long-dashed line
 -1  Double-dotted line
 1  Solid
 2  Dashed line (short dashes)
 3  Dotted line
 4  dashed-dotted line


Here are the four line types guaranteed by GKS:


   PICTURE 33          

If you choose a line type that is not supported at a workstation, line type 1 is used on that workstation.

Principal errors


8
GKS not in proper state: GKS shall be in one of the states GKOP, WSOP, WSAC, or SGOP
63
Linetype is equal to zero

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012