ADM CLabel Widget

CLabel is an awt component bean. It is used to display a value of the specified device property in the control system as a text label. The size, bound, foreground, background, the font and alignment of the label can be set by the user. It also can display the specific string if setText(String) method is called.

The color of the text will be the same as the foreground color if the color mode is set to CLRMOD_STATIC (default). The color of the text will change to yellow or red if the property is in a warning or alarm state (as determined by warning and alarm limits) when the color mode is set to CLRMOD_ALARM.

The display value can be formatted following printf conventions, or using one of following static format constants:

The default format is FRMT_AUTO which means the value will display as a floating point number or scientific notation depending on the value.