"maxAngle"

Defines the position of the maximum value of the specified value range.

Synopsis

shape.maxAngle(int angle);

Parameters

Parameter Description
angle Angle in degree

Description

Position of the maximum value of the value range. The angle is specified in degree in reference to 12 o'clock. This means that -90° corresponds to 9 o'clock, 0° to 12 o'clock and +90° to 3 o'clock.

Example

In the following example the position of the maximum value is set to 90°, the position of the minimum value is set to -180°. This means that the scale is displayed from 6 o'clock to 3 o'clock.

main()
{
  this.minAngle(-180);
  this.maxAngle(90);
}
Abbildung 1. Dial Gauge with the Maximum Value 90°and Minimum Value -180°

Assignment

DialGauge EWO