Skip to main content

%ZEN.SVGComponent.indicatorLamp

Class %ZEN.SVGComponent.indicatorLamp Extends meter [ Deprecated, System = 3 ]

SVG indicator lamp meter.
This meter displays a stylized lamp displaying a label. When its value is above the the threshholdUpper value, the lamp will turn on.
This control looks best when its height is one quarter of its width.

Parameters​

DEFAULTVIEWBOXWIDTH​

Parameter DEFAULTVIEWBOXWIDTH = 100;

Override viewBoxWidth for this component.

DEFAULTVIEWBOXHEIGHT​

Parameter DEFAULTVIEWBOXHEIGHT = 25;

Override viewBoxHeight for this component.

Properties​

lowStyle​

Property lowStyle As %ZEN.Datatype.svgStyle [ InitialExpression = "fill: url(#glow-red);" ];

Style applied to lamp when the meter value is below the low threshold.

normalStyle​

Property normalStyle As %ZEN.Datatype.svgStyle [ InitialExpression = "fill: url(#glow-blue);" ];

Style applied to lamp when the meter value is between the high and low threshold values.

highStyle​

Property highStyle As %ZEN.Datatype.svgStyle [ InitialExpression = "fill: url(#glow-green);" ];

Style applied to lamp when the meter value is above the high threshold.

XDatas​

SVGStyle​

XData SVGStyle

Methods​

renderMeter​

ClientMethod renderMeter() [ Language = javascript ]

Render the inner SVG contents of this component.

updateLamp​

ClientMethod updateLamp() [ Language = javascript ]

Internal method: update lamp

setProperty​

ClientMethod setProperty(property, value, value2) [ Language = javascript ]

Set the value of a named property.