|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcdox.gui.PlaySounds
This class plays a sound. It plays four different sounds (defined in /cdox/sounds/) which (the file paths) are stored in a HashMap. To play a sound just call the static play method with the a key of the sound you want to play. The four keys are:
| Constructor Summary | |
PlaySounds()
|
|
| Method Summary | |
static void |
play(java.lang.String key)
This method should be called to play a sound. |
void |
run()
This method is overwritten from the Runnable interface, here the real playing starts. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PlaySounds()
| Method Detail |
public static void play(java.lang.String key)
key - the key which sound to play.run()public void run()
run in interface java.lang.Runnableplay(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||