Gauge Architecture
Gauge Classes
The hierarchy of gauge classes is as follows:
-
Gauge: Abstract base class.
- RadialGauge: Displays values along a circular scale.
-
LinearGauge: Displays values along a linear scale.
- BulletGraph: Displays actual and target values along a linear scale.
The root Gauge class provides basic elements shares by all Gauge classes:
- An SVG-based control template with customizable parts.
- A common set of properties, events and methods including "min", "max", "value", and "ranges".
Gauge Ranges
C1 MVC gauges are composed of Range objects. Every gauge has at least two ranges: the "face" and the "pointer":
- face: Represents the gauge background. The "min" and "max" properties of the face range correspond to the "min" and "max" properties of the gauge, and limit the values that the gauge can display.
- pointer: Indicates the gauge's current value. The "max" property of the pointer range corresponds to the "value" property of the gauge.
In addition to these two special ranges, gauges may have any number of additional ranges added to their "ranges" collection.