Gauge

In styles with four-way navigation, the user interaction with interactive Gauge is done with left and right arrow keys.

In styles with only two-way navigation, a separate editing screen can be used for Gauge value editing.

The interactive Gauge value may also be directly edited; this may be possible, for example, with direct manipulation of Gauge with a pointer or a numeric keypad if number entry is allowed.

INDEFINITE Gauge defines a stateless progress bar or progress animation. It can be set in one of the four modes:

The states CONTINUOUS_IDLE and INCREMENTAL_IDLE look exactly the same if CONTINUOUS_RUNNING and INCREMENTAL_UPDATING use the same animation. The only difference is that in continuous running, the animation is automatically updated by implementation and in incremental updating, the animation is updated by the MIDlet via calls to Gauge.setValue.

From S60 3rd Edition FP 2 onwards, the progress bar of non-interactive Gauge is centered on the Form.

Gauge in Series 40 devices

Scrolling behavior in Gauge is dependent on the maximum allowed value of the Gauge. When the user holds the scroll key down, the value of the Gauge is increased / decreased every 350 milliseconds but the amount that the value is changed varies according to the following rules:

  • (maximum Gauge value / (total Gauge time / key repeat)), where

    maximum Gauge value is the maxValue integer of the Gauge

    total Gauge time is the time it takes to scroll from minimum to maximum value on the Gauge. The times are as follows:

    • 8 seconds for maximum values 51-100

    • 12 seconds for maximum values 101-1000

    • 20 seconds for maximum values 1001 or above

    key repeat is constantly 350 milliseconds.

The value determined by the above equation is rounded to the nearest multiple of 2, 5, 10, 20, 50, 100, 200..., rounding up.