public interface BrightSpec
OFF
represents turn off and value 1 represents turn on, and
a brightness level shall be 2. If the Indicator supports bright/dark/off
brightness, the brightness value OFF
represents turn off and
value 1 represents dark and value 2 represents bright, and a brightness
level shall be 3. The brightness level can be any levels corresponding to
the Indicator's capability.Modifier and Type | Field and Description |
---|---|
static int |
OFF
Brightness OFF setting that represents the Indicator is off.
|
Modifier and Type | Method and Description |
---|---|
int |
getBrightness()
Gets the current brightness of the Indicator.
|
int |
getBrightnessLevels()
Gets the number of brightness levels supported.
|
void |
setBrightness(int brightness)
Sets the brightness of the indicator.
|
static final int OFF
int getBrightness()
OFF
=< brightness =< getBrightnessLevels()-1int getBrightnessLevels()
OFF
and brightness=1 (on). This provides an on/off capability.void setBrightness(int brightness) throws IllegalArgumentException
OFF
turns the indicator off.brightness
- Indicator brightness.IllegalArgumentException
- if the brightness value is not
an integer that meets:
OFF
=< brightness =< getBrightnessLevels()-1Copyright © 2013 CableLabs. All rights reserved.