COval and CRect are awt component beans. They are used to monitor
the state of a specific device property in a control system. The size,
bound, foreground and background can be set like the awt component.
COval and CRect have the color mode property. When it is set to
CLRMOD_ALARM, the color of these two widgets will change from foreground
to yellow or red if the property is in warning or alarm state
(determined by warning and alarm limits). When the foreground and the
background color are the same as the container's, these widgets will
only appear when the device property is in the warning and alarm states.
Since version 0.3 these two widgets can be used to monitor an Enum type
device - property. A color map (table) is used to represent the state
when the color mode is CLRMOD_ALARM. The default colorMap contains 12
colors, and uses the color black for states above 12.
The user can overwrite this colorMap by calling
setColorMap (Color[] newColor). If the length of newColor is
less than the number of Enum states, the color black will be
used for the remaining states.