CSPX.Dashboard.TrafficLight
class CSPX.Dashboard.TrafficLight extends CSPX.Dashboard.Meter
SVG-based Traffic Light meter for Dashboard.Light logic depends on the relative values of RangeLower and RangeUpper and works as follows:
If RangeLower is less than (or equal to) RangeUpper, then the light is green when the level is less than (or equal to) ThresholdLower and the light is red when the level is greater than (or equal to) ThresholdUpper otherwise the light is yellow.
If RangeLower is greater then RangeUpper, then the light is red when the level is less than (or equal to) ThresholdLower and the light is green when the level is greater than (or equal to) ThresholdUpper otherwise the light is yellow.
Method Inventory
Parameters
parameter MINWIDTH = 50;
Inherited description: Minimum width, in logical units, of this meter.
parameter WIDTH = 50;
Inherited description: Default width, in logical units, of this meter.
Methods
method OnSVGBody()
Draw the body of this SVG meter
classmethod OnSVGDefs()
Draw the defs section of this SVG meter
classmethod OnSVGScript()
Draw the script section of this SVG meter
classmethod OnSVGStyle()
Inherited description: Draw the style section of this SVG meter
Inherited Members
Inherited Properties
- DefList
- Description
- Height
- IsRunning
- Label
- Level
- Link
- MeterId
- Method
- Metric
- Property
- PropertyCount
- RangeLower
- RangeUpper
- ScaleFactor
- ShowLabel
- ThresholdLower
- ThresholdUpper
- Width
- XPos
- YPos
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- GenerateCode()
- GetDefault()
- GetUnits()
- HeightSet()
- OnSVGHead()
- OnSVGInitJS()
- SetClientProperties()
- WidthSet()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()