This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > CSPX.Dashboard.TrafficLight

CSPX.Dashboard.TrafficLight

class CSPX.Dashboard.TrafficLight extends CSPX.Dashboard.Meter

SVG-based Traffic Light meter for Ensemble 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