|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SampleSounds>
com.antelmann.sound.SampleSounds
public enum SampleSounds
SampleSounds provides some sample sounds that are included in the standard antelmann.jar file. The methods make a best attempt to play a given sound once; any exceptions are ignored.
| Enum Constant Summary | |
|---|---|
DERANGED
represents the sound "deranged" included in the antelmann.jar file |
|
DISAPPOINTED
represents the sound "disappointed" included in the antelmann.jar file |
|
DOH
represents the sound "doh" included in the antelmann.jar file |
|
MESSAGE4U
represents the sound "there is a message for you" included in the antelmann.jar file |
|
NI
represents the sound "ni" included in the antelmann.jar file |
|
RAGTIME
represents a midi file playing a ragtime song included in the antelmann.jar file |
|
REGISTER
represents the sound "cashregister" included in the antelmann.jar file |
|
RING
represents the sound "ring" included in the antelmann.jar file |
|
TYPING
represents the sound "type" included in the antelmann.jar file |
|
| Field Summary |
|---|
| Fields inherited from interface com.antelmann.calendar.Timed |
|---|
COMPARATOR, DATE_EXTRACTOR |
| Method Summary | |
|---|---|
URL |
getResource()
|
long |
getTime()
provides the duration of the sound before it has to be loaded |
void |
play()
|
void |
playAndWait()
|
static SampleSounds |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SampleSounds[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SampleSounds DOH
public static final SampleSounds MESSAGE4U
public static final SampleSounds NI
public static final SampleSounds RING
public static final SampleSounds DISAPPOINTED
public static final SampleSounds DERANGED
public static final SampleSounds RAGTIME
public static final SampleSounds REGISTER
public static final SampleSounds TYPING
| Method Detail |
|---|
public static SampleSounds[] values()
for (SampleSounds c : SampleSounds.values()) System.out.println(c);
public static SampleSounds valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic URL getResource()
public long getTime()
getTime in interface Timedpublic void play()
SoundPlayer.play(URL)public void playAndWait()
SoundPlayer.playAndWait(URL)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||