/
ColorHardwareProperty.js
48 lines (41 loc) · 1.37 KB
/
ColorHardwareProperty.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* API Version - 3.1.2 */
/**
* Represents an output value shown on some hardware (for example, the color of a light).
*
* @since API version 10
*/
function ColorHardwareProperty() {}
ColorHardwareProperty.prototype = new HardwareProperty();
ColorHardwareProperty.prototype.constructor = ColorHardwareProperty;
/**
* Gets the current value. This is the value that should be sent to the hardware to be displayed.
*
* @return {Color}
*/
ColorHardwareProperty.prototype.currentValue = function() {};
/**
* The value that was last sent to the hardware.
*
* @return {Color}
*/
ColorHardwareProperty.prototype.lastSentValue = function() {};
/**
* Specifies a callback that should be called with the value that needs to be sent to the hardware. This
* callback is called as a result of calling the {@link HardwareSurface#updateHardware()} method (typically
* from the flush method).
*
* @param {java.util.function.Consumer<Color>} sendValueConsumer
*/
ColorHardwareProperty.prototype.onUpdateHardware = function(sendValueConsumer) {};
/**
* Sets the current value.
*
* @param {Color} value
*/
ColorHardwareProperty.prototype.setValue = function(value) {};
/**
* Sets the current value from a {@link Supplier} that supplies the latest value.
*
* @param {java.util.function.Supplier<Color>} supplier
*/
ColorHardwareProperty.prototype.setValueSupplier = function(supplier) {};