class CSPX.Dashboard.TrafficLight
extends Meter
SVG-based Traffic Light meter for Dashboard.
Light logic depends on the relative values of RangeLower and
RangeUpper and works as follows:
If RangeLower is less than (or equal to) RangeUpper, then
the light is green when the level is less than (or equal to) ThresholdLower and
the light is red when the level is greater than (or equal to) ThresholdUpper otherwise
the light is yellow.
If RangeLower is greater then RangeUpper, then
the light is red when the level is less than (or equal to) ThresholdLower and
the light is green when the level is greater than (or equal to) ThresholdUpper otherwise
the light is yellow.
parameter MINWIDTH = 50;
Minimum width, in logical units, of this meter.
parameter WIDTH = 50;
Default width, in logical units, of this meter.
method OnSVGBody()
Draw the body of this SVG meter
classmethod OnSVGDefs()
Draw the defs section of this SVG meter
classmethod OnSVGScript()
Draw the script section of this SVG meter
classmethod OnSVGStyle()
Draw the style section of this SVG meter