|
Control Surface API
2.2.2
|

Public Member Functions | |
| double | get () |
| double | getRaw () |
| StringValue | displayedValue () |
| void | addValueObserver (int range, IntegerValueChangedCallback callback) |
| void | addRawValueObserver (DoubleValueChangedCallback callback) |
Public Member Functions inherited from Value< DoubleValueChangedCallback > | |
| void | markInterested () |
| void | addValueObserver (ObserverType callback) |
Instances of this interface represent numeric values that have an upper and lower limit.
Definition at line 10 of file RangedValue.java.
| void addRawValueObserver | ( | DoubleValueChangedCallback | callback | ) |
Add an observer which receives the internal raw of the parameter as floating point.
| callback | a callback function that receives a single numeric parameter with double precision. |
| void addValueObserver | ( | int | range, |
| IntegerValueChangedCallback | callback | ||
| ) |
Adds an observer which receives the normalized value of the parameter as an integer number within the range [0..range-1].
| range | the range used to scale the value when reported to the callback |
| callback | a callback function that receives a single double parameter |
| StringValue displayedValue | ( | ) |
Value that represents a formatted text representation of the value whenever the value changes.
| double get | ( | ) |
The current value normalized between 0..1 where 0 represents the minimum value and 1 the maximum.
| double getRaw | ( | ) |
Gets the current value.