danger.audio
Class PreviewTone
java.lang.Object
danger.app.Listener
danger.audio.PreviewTone
public class PreviewTone
- extends Listener
| Methods inherited from class danger.app.Listener |
cancelEvents, childEventPump, childEventPumpDone, eventProblem, isDispatchingThread, receiveEventInternal, sendEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendLowPriorityEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
play
public static void play(RingToneObject ringTone,
Event callbackEvent)
play
public static void play(RingToneObject ringTone,
Event callbackEvent,
int loop)
stop
public static void stop()
getPreviewingRingTone
public static Tone getPreviewingRingTone()
isPreviewingRingTone
public static boolean isPreviewingRingTone()
receiveEvent
public boolean receiveEvent(Event e)
- Description copied from class:
Listener
- Entry point for event processing. This method is called from
a
Dispatcher when it reads an Event in its queue
that is targetted at this instance. The default behavior is to
do nothing and return false. Subclasses are expected
to override this method to do something more useful.
- Overrides:
receiveEvent in class Listener
- Parameters:
e - non-null; the event to process
- Returns:
- whether (
true) or not (false) this
method actually handled the event to completion