Frequently used behavior rules

Color the background of a shape in red if there is an alarm

<rect id="Background" x="0" y="0" width="100" height="200" fill="#CCCCCC" />
<g id="Foreground">
  <!-- Elements in the foreground -->
</g>

Condition

Property

<IN_ALARM>

Function

=

Value

true

Action

Action Type

Set shape attribute

Element

Background

Attribute

fill

Value

red


Color the outline of a shape in yellow when out of service

<rect id="Background" x="0" y="0" width="100" height="200" fill="#CCCCCC" stroke="none" stroke-width="2" />
<g id="Foreground">
  <!-- Elements in the foreground -->
</g>

Condition

Property

OUT_OF_SERVICE

Function

=

Value

true

Action

Action Type

Set shape attribute

Element

Background

Attribute

stroke

Value

yellow


Display text of live value and unit

<text id="LiveValue" x="100" y="10" text-anchor="end" fill="#000000" />
<text id="Unit" x="110" y="10" text-anchor="start" fill="#999999" />

Behavior rule 1

Condition

Property

<LiveValue>

Function

Always

Action

Action Type

Set dynamic text

Element

LiveValue

Behavior rule 2

Condition

Property

<Unit>

Function

Always

Action

Action Type

Set dynamic text

Element

Unit


Rotate line from 0 to 90°

<line id="Indicator" x1="0" y1="0" x2="100" x2="0" stroke="#000000" />

Condition

Property

<LiveValue>

Function

Always

Action

Action Type

Rotate

Element

Indicator

Value

[0,100],[0,90]