This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new window

For information on migrating to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).

%ZEN.SVGComponent.indicatorLamp

class %ZEN.SVGComponent.indicatorLamp extends %ZEN.SVGComponent.meter

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.

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter DEFAULTVIEWBOXHEIGHT = 25;
Override viewBoxHeight for this component.
parameter DEFAULTVIEWBOXWIDTH = 100;
Override viewBoxWidth for this component.

Properties (Including Private)

property highStyle as %ZEN.Datatype.svgStyle [ InitialExpression = "fill: url(#glow-green);" ];
Style applied to lamp when the meter value is above the high threshold.
Property methods: highStyleDisplayToLogical(), highStyleGet(), highStyleIsValid(), highStyleLogicalToDisplay(), highStyleLogicalToOdbc(), highStyleNormalize(), highStyleSet()
property lowStyle as %ZEN.Datatype.svgStyle [ InitialExpression = "fill: url(#glow-red);" ];
Style applied to lamp when the meter value is below the low threshold.
Property methods: lowStyleDisplayToLogical(), lowStyleGet(), lowStyleIsValid(), lowStyleLogicalToDisplay(), lowStyleLogicalToOdbc(), lowStyleNormalize(), lowStyleSet()
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.
Property methods: normalStyleDisplayToLogical(), normalStyleGet(), normalStyleIsValid(), normalStyleLogicalToDisplay(), normalStyleLogicalToOdbc(), normalStyleNormalize(), normalStyleSet()

Methods (Including Private)

clientmethod renderMeter() [ Language = javascript ]
Render the inner SVG contents of this component.
clientmethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.
clientmethod updateLamp() [ Language = javascript ]
Internal method: update lamp

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)

FeedbackOpens in a new window