AnalogColor


AnalogColor is connected to an analog signal, and sets the specified fill color when the signal
goes below or beyond a limit. The limit is specified in AnalogColor.Limit and
AnalogColor.LimitType determines if it is an upper or lower limit. If LimitType is GreaterThan,
the fillcolor is set, when the value of the signal exceeds the limit, and when LimitType
is LessThan, the fillcolor is set when the signal value is below the limit. Other limit types
are GreaterEqual, LessEqual and Equal.

AnalogColor can exist in several instances, which makes it possible to set several limit
values and to shift between several colors (up to 32 colors).

Either all instances work with the same signal, or each signal has it's own attribute. This
is configured with AnalogColor.CommonAttribute.

Note! If there are several instances with equal LimitType, a higher instance has to have a
higher limit, when LimitType is GreaterThan or GreaterEqual. If LimitType is LessThan or
LessEqual, a higher instance has to have a lower limit.

Attribute                               Description
AnalogColor.Attribute                       Signal in the database of type Float32 or Int32. The
                      value is compared to the limit, and if it is
                      beyond/below the limit the color of the component is
                      changed.
AnalogColor.Color                       Fill color of the component value when the signal has
                      passed the limit.
AnalogColor.Border                       Set border color instead of fill color.
AnalogColor.CommonAttribute                       The same attribute is used for all instances.
                      Otherwise each instance will have it's own attribute.
AnalogColor.Limit                       Limit value.
AnalogColor.LimitType                       Type of limit. Can be GreaterThan, GreaterEqual,
                      LessThan, LessEqual or Equal.
AnalogColor.Instances                       Instance mask where instances can be added or removed.
AnalogColor2.Color                       Fill color for instance number 2.
AnalogColor2.Limit                       Limit for instance number 2.
AnalogColor2.LimitType                       Type of limit for instance number 2.
AnalogColor3.Color                       Fill color for instance number 3.