class %ZEN.SVGComponent.textMeter
extends meter
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.
parameter DEFAULTVIEWBOXHEIGHT = 25;
Override viewBoxHeight for this component.
parameter DEFAULTVIEWBOXWIDTH = 100;
Override viewBoxWidth for this component.
property backgroundStyle
as %ZEN.Datatype.svgStyle;
Additional style applied to the background of this meter.
property format
as %ZEN.Datatype.string;
Numeric format string to apply to the value.
property highStyle
as %ZEN.Datatype.svgStyle [ InitialExpression = "fill: #404080;" ];
Style applied to text when the meter value is above the high threshold.
property lowStyle
as %ZEN.Datatype.svgStyle [ InitialExpression = "fill: #804040;" ];
Style applied to text when the meter value is below the low threshold.
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.
method renderMeter()
[ Language = javascript ]
Render the inner SVG contents of this component.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.