State Indicator Gauges

  • 3 minutes to read

This document gives the detailed information on State Indicator Gauge types shipped with the XtraGauges Suite, as well as explains how they should be used in your application.

For details on other gauge types, refer to the corresponding topics of the Gauge Types section.

State Indicator Gauges Overview

A state indicator gauge is a container of state indicators - objects that have states and vector images associated with them.

Visually, a state indicator displays nothing but an image associated with the current state. When a state indicator's state changes, a corresponding image is automatically displayed. So, a state indicator gauge is appropriate for imitating static visual objects that have a fixed set of states (for instance, bulbs, traffic lights, arrows, etc).

The following image shows three gauges, each of which displays a static indicator having a specific state:

StateIndicatorGauge_Sample

State indicators display images according to their states. A set of images for state indicators is predefined.

All images for state indicators can be grouped into the following categories:

  • Arrows;
  • Currency Symbols;
  • Flags;
  • Car lcons;
  • Electric Lights;
  • Smiles;
  • Traffic Lights.

Some of the images from these categories are shown below:

StateIndicatirPresets

A full set of indicator's images is available at design time in the gauge Preset Manager.

StateIndicatorGauge Class

A State Indicator Gauge is represented by an instance of the StateIndicatorGauge class. This object can be accessed as an item of the GaugeCollection object returned by the GaugeControlBase.Gauges property of the GaugeControl object.

See the following code:


StateIndicatorGauge gauge1 =  gaugeControl1.Gauges[0] as StateIndicatorGauge;

You can create a State Indicator Gauge control either at design time within Visual Studio or programmatically at runtime. The following examples demonstrate how it can be done:

State Indicator Elements

This section describes state indicator gauge elements, as well as gives a brief overview of their properties.

A state indicator gauge consists of base Indicator element.

The following image shows a sample state indicator gauge indicating gauge elements:

StateIndicatorGaugeElements

A state indicator gauge can display one or more state indicators, and each can have its own set of states. In the image above, the gauge contains two state indicators.

It provides the following main display options:

For more information on gauge elements, see the Visual Elements section.