|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.smil.basic.Scheduler
Scheduler schedules the whole SMIL presentation.
It is used as a global timer. All timed elements will add themselves as
listeners for time evets, which are notified according to the element request.
A centralized scheduler is used to synchronize timed elements. It also
helps starting, stopping and pausing the presentation.
| Field Summary | |
static int |
TIMER_ACTIVATE
Callback methods, timed element may request one of these methods to be called when the timer triggers. |
static int |
TIMER_DEACTIVATE
|
static int |
TIMER_SIMPLEDUR
|
| Constructor Summary | |
Scheduler(SMILDocumentImpl doc)
Constructor. |
|
| Method Summary | |
void |
addTimeListener(ElementBasicTimeImpl elem,
long time,
int callbackMethod)
Add a time listener. |
void |
cont()
Continue all elements and the timer. |
void |
destroy()
Destroy scheduler and the timer. |
long |
getDocTimeNow()
Return the current time in document time. |
long |
getStartTime()
Return the start time of the presentation |
void |
pause()
Pause all elements and the timer. |
void |
removeTimeListener(ElementBasicTimeImpl elem,
int callbackMethod)
Remove time listener for element elem. |
void |
removeTimeListeners(ElementBasicTimeImpl elem)
Remove all time listeners for element elem. |
void |
start()
Start all elements and the timer. |
void |
stop()
Stop all elements and the timer. |
void |
timeReached()
The time has been reached. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TIMER_ACTIVATE
public static final int TIMER_DEACTIVATE
public static final int TIMER_SIMPLEDUR
| Constructor Detail |
public Scheduler(SMILDocumentImpl doc)
| Method Detail |
public long getStartTime()
public long getDocTimeNow()
public void addTimeListener(ElementBasicTimeImpl elem,
long time,
int callbackMethod)
elem - Element to be notified after time has elapsed.time - Time value in ms, related to body start timecallbackMethod - Method to call back when notification happenspublic void removeTimeListeners(ElementBasicTimeImpl elem)
elem - Element to be removed
public void removeTimeListener(ElementBasicTimeImpl elem,
int callbackMethod)
elem - Element to be removedpublic void start()
public void stop()
public void pause()
public void destroy()
public void cont()
public void timeReached()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||