| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (24 out of 30)

rotate

This action rotates an icon in 90 degree increments.

To use the rotate action:

Rotating an Icon

To rotate an icon:

This action rotates the icon of item the specified degrees clockwise from its current degree of rotation. Selecting this action repeatedly causes the icon to continue rotating clockwise by the specified degree of rotation. An example is:


Entering a value other than those specified causes G2 to round the number to the closest allowable value. For example, if you enter 40 degrees, G2 rounds that value down to 0 degrees; while entering 50 degrees causes G2 to round the value up to 90 degrees.

Some items, such as charts and dials, do not permit rotation. G2 signals an error if you try to rotate an item that cannot be rotated.

Rotating an Icon From its Vertical Position

This action rotates an icon clockwise a specified number of degrees from its original upright position, which G2 refers to as its heading. The number of degrees you specify can be 0, 90, 180, or 270. Use the to the heading clause to rotate an icon regardless of its current rotation.

To rotate an icon from its upright vertical position:

An example is:



Note: Using the rotate action can cause event updating, such as invoking whenever rules that test for icon rotation.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (24 out of 30)

Copyright © 1997 Gensym Corporation, Inc.