DocBook|Search
Class Reference
%ZEN.SVGComponent.speedometer
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [USER] >  [%ZEN] >  [SVGComponent] >  [speedometer]
Private  Storage  

class %ZEN.SVGComponent.speedometer extends meter

SVG speedometer meter.
This displays a value within a representation of a speedometer.
Note: to get the older look of this component, set the stylized true.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
20 8


Summary

Properties
%condition %controller %import %includeFiles
%page %resource animate aux
boundless composite controller controllerId
dataBinding disabled document height
hidden highLampColor highRangeStyle id
independentOdometer index innerCircleStyle label
labelStyle logo lowLampColor lowRangeStyle
midCircleStyle name needleStyle nubStyle
odometerBoxStyle odometerFormat odometerTextStyle odometerValue
onchange onclick onnotifyView onupdate
outerCircleStyle parent position preserveAspectRatio
rangeLower rangeUpper ringStyle scaleFactor
separatorStyle showConditionally stylized svgComponent
svgGroup targetValue thinNeedle thresholdLower
thresholdUpper tuple value valueLabelStyle
viewBoxHeight viewBoxWidth visible width
window x y

Methods
%%OIDGet %AddToSaveSet %Attr %BindExport
%ClassIsLatestVersion %ClassName %ConstructClone %DispatchClassMethod
%DispatchGetModified %DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %DrawHTML %DrawJSStrings
%Eval %Extends %ForceClientRender %GetEventHandlers
%GetParameter %GetXMLName %IsA %IsModified
%MakeId %New %NormalizeObject %ObjectModified
%OnAddToPageAfter %OnAddToPageBefore %OnDrawObjectProperties %OnObjectSynch
%OnZENDeserialize %OriginalNamespace %PackageName %QuoteValue
%QuoteValueL10N %RemoveFromSaveSet %Self %SerializeObject
%SetModified %ValidateObject XMLDTD XMLExport
XMLExportToStream XMLExportToString XMLNew XMLSchema
XMLSchemaNamespace XMLSchemaType acquireData beginWaitState
calculateViewBox clickHandler endWaitState findElement
findSVGElement fireOnUpdateEvent getController getFrame
getLabelText getNumericAbbreviation getProperty getSettings
getSizeAbsolute getType getValue invokeSuper
isOfType makeId notifyViewHandler onCreate
onDelete onSerialize onchangeHandler onloadHandler
onunloadHandler onupdateHandler refreshContents render
renderContents renderLabel renderMeter renderSVG
sendEventToController setControllerId setOverlayMode setPosition
setPositionHandler setProperty setSize setSizeHandler
setTextNode setValue sizingMouseDownHandler unrender
updateNeedle wrapMethod


Properties

• property highLampColor as %ZEN.Datatype.color [ InitialExpression = "url(#glow-red)" ];
Fill color used for high indicator lamp.
• property highRangeStyle as %ZEN.Datatype.style;
Optional. Style applied to scale ring values above the low threshold value. This only applies to non-stylized views.
• property independentOdometer as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, the odometer will show an independent value; if false, the odometer will show the same value as the needle.
• property innerCircleStyle as %ZEN.Datatype.style;
Optional. Style applied to inner region.
• property logo as %ZEN.Datatype.caption [ InitialExpression = "Zen" ];
Text for logo displayed in center of dial (for stylized display only).
• property lowLampColor as %ZEN.Datatype.color [ InitialExpression = "url(#glow-red)" ];
Fill color used for low indicator lamp.
• property lowRangeStyle as %ZEN.Datatype.style;
Optional. Style applied to scale ring values below the low threshold value. This only applies to non-stylized views.
• property midCircleStyle as %ZEN.Datatype.style;
Optional. Style applied to mid-region circle (where tick marks appear in non-stylized view). This is beneath the "ring".
• property needleStyle as %ZEN.Datatype.style;
Optional. Style applied to needle.
• property nubStyle as %ZEN.Datatype.style;
Optional. Style applied to nub (circle over center of needle).
• property odometerBoxStyle as %ZEN.Datatype.style;
Optional. Style applied to odometer box.
• property odometerFormat as %ZEN.Datatype.string;
Numeric format string to apply to the odometer value.
• property odometerTextStyle as %ZEN.Datatype.style;
Optional. Style applied to odometer value.
• property odometerValue as %ZEN.Datatype.string;
If independentOdometer is true, then this is the value displayed in the odometer.
• property outerCircleStyle as %ZEN.Datatype.style;
Optional. Style applied to outer region.
• property ringStyle as %ZEN.Datatype.style;
Optional. Style applied to mid-region ring (where tick marks appear in non-stylized view).
• property separatorStyle as %ZEN.Datatype.style;
Optional. Style applied to lines between value labels.
• property stylized as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, render a stylized speedometer (the classic Zen visualization); if false, render a more baroque speedometer (the classic DeepSee visualization);
• property thinNeedle as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, render a thin needle, otherwise use a wider needle.
• property valueLabelStyle as %ZEN.Datatype.style;
Optional. Style applied to value labels.

Methods

• method getNumericAbbreviation(val, min, max) [ Language = javascript ]
Return a numeric abbreviation for a value. min and max are range that value falls within. E.g., 10K for 10000
• 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.
• method updateNeedle(animate) [ Language = javascript ]
Internal method: update position of needle