| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
be.lassi.domain
Class TimedLevel
java.lang.Objectbe.lassi.domain.Level
be.lassi.domain.TimedLevel
- All Implemented Interfaces:
 - ClockListener
 
public class TimedLevel
- extends Level
 - implements ClockListener
 - extends Level
 
A channel level that supports fading.
| Constructor Summary | |
|---|---|
TimedLevel()
Constructs a new timed level.  | 
|
TimedLevel(long fadeTime)
Constructs a new timed level with given fading time.  | 
|
| Method Summary | |
|---|---|
 void | 
clockTick(long now)
 | 
 void | 
fadeDown(long now)
Fades down.  | 
 void | 
fadeUp(long now)
Fades up.  | 
 float | 
getCalculatedValue(long now)
Gets the calculated current level value (without updating the level value variable, so that no listeners get notified).  | 
 long | 
getFadeTime()
Gets the fade time.  | 
 void | 
pause(long now)
Stops the currently active fade (if any).  | 
 void | 
setFadeTime(long fadeTime,
            long now)
Sets the fade time.  | 
| Methods inherited from class be.lassi.domain.Level | 
|---|
add, equals, getIntValue, getValue, hashCode, hasListeners, isActive, remove, set, setActive, setIntValue, setValue, setValueWithoutUpdate, string, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
TimedLevel
public TimedLevel()
- Constructs a new timed level.
 
TimedLevel
public TimedLevel(long fadeTime)
- Constructs a new timed level with given fading time.
- Parameters:
 fadeTime- the time in milliseconds that a fade should take
 
| Method Detail | 
|---|
clockTick
public void clockTick(long now)
- 
- Specified by:
 clockTickin interfaceClockListener
 
fadeDown
public void fadeDown(long now)
- Fades down.
- Parameters:
 now- time at start of fade
 
fadeUp
public void fadeUp(long now)
- Fades up.
- Parameters:
 now- time at start of fade
 
getCalculatedValue
public float getCalculatedValue(long now)
- Gets the calculated current level value (without updating the
 level value variable, so that no listeners get notified).
- Parameters:
 now- the current system time- Returns:
 - the calculated level value
 
 
getFadeTime
public long getFadeTime()
- Gets the fade time.
- Returns:
 - the fade time
 
 
pause
public void pause(long now)
- Stops the currently active fade (if any).
- Parameters:
 now- the current system time
 
setFadeTime
public void setFadeTime(long fadeTime,
                        long now)
- Sets the fade time.
- Parameters:
 fadeTime- the new fade time
 
  | 
Lighting Assistant 1.2 | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
