%ZEN.SVGComponent.trafficLight
Class %ZEN.SVGComponent.trafficLight Extends meter [ Deprecated, System = 3 ]
SVG traffic light meter.
This displays a value within a stylized representation of a trafic light.
The light logic depends on the relative values of the rangeLower and rangeUpper properties 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.
This control looks best when its width is half of its height.
Parameters
DEFAULTVIEWBOXWIDTH
Parameter DEFAULTVIEWBOXWIDTH = 50;
Override viewBoxWidth for this component.
Properties
outerBodyStyle
Property outerBodyStyle As %ZEN.Datatype.style;
Optional. Style applied to outer region.
XDatas
SVGStyle
XData SVGStyle
SVGDef
XData SVGDef
Methods
renderMeter
ClientMethod renderMeter() [ Language = javascript ]
Render the inner SVG contents of this component.
updateLamps
ClientMethod updateLamps() [ Language = javascript ]
Internal method: update lamps
setProperty
ClientMethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.