|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--edu.umd.cs.jazz.animation.ZAnimation
|
+--edu.umd.cs.jazz.animation.ZAudioAnimation
ZAudioAnimation is designed to make it easy to synchronize an audio clip
with another animation. ZAudioAnimation does not really animate but it overrides
the animationStarted and animationStarted methods and starts
and stops it audio clip from within those methods.
To synchronize audio with an animation just create a new ZAudioAnimation with the audio clip that is wanted, and schedule the audio animation with the same ZAlpha object that is used for the other animation. This will cause the audio to start and end at the exact same time as the animation it is being synchronized to.
ZAlpha| Constructor Summary | |
ZAudioAnimation(java.applet.AudioClip aAudioClip)
Construct a new ZAudioAnimation. |
|
| Method Summary | |
protected void |
animationStarted()
Start looping the audio clip. |
protected void |
animationStopped()
Stop looping the audio clip. |
java.applet.AudioClip |
getAudioClip()
Return the audio clip that will be looped when the animation is started, and stopped when the animation is stopped. |
void |
setAudioClip(java.applet.AudioClip aAudioClip)
Set the audio clip that will be looped when the animation is started, and stopped when the animation is stopped. |
| Methods inherited from class edu.umd.cs.jazz.animation.ZAnimation |
animateFrameForTime, animationRateByElapsedFrames, animationRateByElapsedTime, animationRateByNextFrame, getAlpha, isStopped, play, scheduleNextFrame, scheduleNextFrame, setAlpha, setStartedRunnable, setStoppedRunnable, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZAudioAnimation(java.applet.AudioClip aAudioClip)
aAudioClip - the audio clip that will be looped when the animation is started.| Method Detail |
public java.applet.AudioClip getAudioClip()
public void setAudioClip(java.applet.AudioClip aAudioClip)
protected void animationStarted()
animationStarted in class ZAnimationprotected void animationStopped()
animationStopped in class ZAnimation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||