public class LightAdapter extends java.lang.Object implements LightListener
| Constructor and Description | 
|---|
LightAdapter()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
bright(SensorPort port,
      int level)
Empty method called when the light becomes brighter than the trigger level. 
 | 
void | 
dark(SensorPort port,
    int level)
Empty method called when the light becomes darker than the trigger level. 
 | 
public void bright(SensorPort port, int level)
bright in interface LightListenerport - the port where the sensor is plugged inlevel - the current light level.public void dark(SensorPort port, int level)
dark in interface LightListenerport - the port where the sensor is plugged inlevel - the current light level