Skip to main content

%ZEN.SVGComponent.textMeter

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

SVG text meter.
This meter displays a value as text within a rectangular region.
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

backgroundStyle

Property backgroundStyle As %ZEN.Datatype.svgStyle;

Additional style applied to the background of this meter.

format

Property format As %ZEN.Datatype.string;

Numeric format string to apply to the value.

lowStyle

Property lowStyle As %ZEN.Datatype.svgStyle [ InitialExpression = "fill: #804040;" ];

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

normalStyle

Property normalStyle As %ZEN.Datatype.svgStyle [ InitialExpression = "fill: #404040;" ];

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

highStyle

Property highStyle As %ZEN.Datatype.svgStyle [ InitialExpression = "fill: #404080;" ];

Style applied to text 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.

updateMeter

ClientMethod updateMeter() [ Internal, Language = javascript ]

Internal method: update the meter.

setProperty

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

Set the value of a named property.