Skip to main content

CSPX.Dashboard.TrafficLight

class CSPX.Dashboard.TrafficLight extends CSPX.Dashboard.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.

Method Inventory

Parameters

parameter MINWIDTH = 50;
Inherited description: Minimum width, in logical units, of this meter.
parameter WIDTH = 50;
Inherited description: Default width, in logical units, of this meter.

Methods

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()
Inherited description: Draw the style section of this SVG meter

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab