Using Graphics Commands

Graphics commands, consisting of operators and operands, are sent over an InfoConnect path from the parent accessory to GraphX. GraphX interprets and displays received UTS 60 graphics command sequences. GraphX expects to receive only the commands defined by the UTS 60 graphics command protocol in addition to any extensions.

Generally, GraphX ignores invalid commands, but in some situations, an invalid command may cause subsequent commands to be lost because GraphX may not be able to determine the end of an invalid command. GraphX does not require a complete command to be sent within a single buffer; it accumulates the command arguments until the command is complete and then displays the image.

Command-line Parameters

When starting GraphX from the command line, you can include four optional parameters. These parameters specify the accessory configuration file, the communication path to use, the screen location of the accessory, and the accessory keyname.

Parameter

Description

-C filename

Indicates the name of the accessory configuration file.

-P pathname

Indicates the path name to use for communication.

-L left, top, right, bottom

Indicates the location and dimensions for positioning the accessory.The left, top, right, and bottom parameters are pixel coordinates specified as integers.

-K keyname

Indicates the keyname assigned to the accessory which is used when opening an accessory from a parent accessory. The keyname for GraphX is UTS60G.

Example

The following command line syntax runs GraphX, positions the accessory at coordinates 20,60,500,200, and specifies the name of the path over which GraphX receives graphics commands:

GRAPHX -L(20,60,500,200) -PPATHNAME