pulpcore.animation.event
Class SoundEvent
java.lang.Object
pulpcore.animation.Animation
pulpcore.animation.event.TimelineEvent
pulpcore.animation.event.SoundEvent
- All Implemented Interfaces:
- Runnable
public class SoundEvent
- extends TimelineEvent
A SoundEvent is a TimelineEvent
that plays a sound after a specific
delay.
Constructor Summary |
SoundEvent(Sound sound,
int delay)
Creates a sound event. |
Method Summary |
void |
run()
|
Methods inherited from class pulpcore.animation.Animation |
fastForward, getDuration, getEasing, getLoopDelay, getNumLoops, getStartDelay, getTime, getTotalDuration, isFinished, loop, loop, loopForever, loopForever, rewind, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoundEvent
public SoundEvent(Sound sound,
int delay)
- Creates a sound event.
- Parameters:
sound
- the sound to playdelay
- the delay, in milliseconds, before playing the sound.
run
public void run()
- Specified by:
run
in interface Runnable
- Specified by:
run
in class TimelineEvent
Copyright © 2007-2009 Interactive Pulp, LLC.