danger.audio
Class PreviewTone

java.lang.Object
  extended by danger.app.Listener
      extended by danger.audio.PreviewTone


public class PreviewTone
extends Listener


Nested Class Summary
static interface PreviewTone.Loop
           
 
Method Summary
static Tone getPreviewingRingTone()
           
static boolean isPreviewingRingTone()
           
static void play(RingToneObject ringTone, Event callbackEvent)
           
static void play(RingToneObject ringTone, Event callbackEvent, int loop)
           
 boolean receiveEvent(Event e)
          Entry point for event processing.
static void stop()
           
 
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
 

Method Detail

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