|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.mlfc.smil.extension.AnimationScheduler
This is the animation scheduler. Every active animation should
register itself to this scheduler. During run time, the steps are the following
to comply with the "sandwich model":
Every timer tick (50 ms):
1. Scheduler clears all domBuffer values
2. Scheduler asks animation elements sequenced by priority to update domBuffer
3. Scheduler updates relevant target elements based on updated domBuffer
4. Scheduler refreshes the target elements - all animations are visible at the
same time. Also no longer used domBuffer attributes are cleared.
When the animation element is removed, it should remove itself from the scheduler.
Only one instance of the scheduler is created by SMILDocumentImpl. The animated target Element must implement AnimationService to be animated.
| Constructor Summary | |
AnimationScheduler(SMILDocumentImpl smil)
Creates necessary private variables. |
|
| Method Summary | |
void |
addAnimation(long priority,
SMILAnimationImpl anim)
Add an animation element. |
java.lang.String |
getAnimAttribute(org.w3c.dom.Element element,
java.lang.String attribute)
Callback method. |
boolean |
removeAnimation(SMILAnimationImpl anim)
Remove an animation element from the AnimationScheduler. |
void |
run()
Animate everything. |
void |
setAnimAttribute(org.w3c.dom.Element element,
java.lang.String attribute,
java.lang.String value)
Callback method. |
void |
stop()
Stop the scheduler - frees timers etc. |
void |
updateAnimations()
Update all animations in the presentation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AnimationScheduler(SMILDocumentImpl smil)
| Method Detail |
public void stop()
public void addAnimation(long priority,
SMILAnimationImpl anim)
public boolean removeAnimation(SMILAnimationImpl anim)
public void updateAnimations()
public java.lang.String getAnimAttribute(org.w3c.dom.Element element,
java.lang.String attribute)
element - Target elementattribute - Target attribute
public void setAnimAttribute(org.w3c.dom.Element element,
java.lang.String attribute,
java.lang.String value)
element - Target elementattribute - Target attributevalue - Value of target attribute, to be set to the "DOM buffer"public void run()
run in interface java.lang.Runnable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||