|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.audionotifier.SCAudioClipImpl
public class SCAudioClipImpl
Implementation of SCAudioClip.
| Constructor Summary | |
|---|---|
SCAudioClipImpl(URL url,
AudioNotifierService audioNotifier)
Creates the audio clip and initialize the listener used from the loop timer. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Plays an audio clip. |
int |
getLoopInterval()
Returns the loop interval if this audio is looping. |
void |
internalStop()
Stops this audio without setting the isLooping property in the case of a looping audio. |
boolean |
isInvalid()
Returns TRUE if this audio is invalid, FALSE otherwise. |
boolean |
isLooping()
Returns TRUE if this audio is currently playing in loop, FALSE otherwise. |
void |
play()
Plays this audio. |
void |
playInLoop(int interval)
Plays this audio in loop. |
void |
setInvalid(boolean isInvalid)
Marks this audio as invalid or not. |
void |
stop()
Stops this audio. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCAudioClipImpl(URL url,
AudioNotifierService audioNotifier)
throws IOException
url - the url pointing to the audio file
IOException| Method Detail |
|---|
public void play()
play in interface SCAudioClippublic void playInLoop(int interval)
playInLoop in interface SCAudioClipinterval - the loop intervalpublic void stop()
stop in interface SCAudioClippublic void internalStop()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic boolean isInvalid()
public void setInvalid(boolean isInvalid)
isInvalid - TRUE to mark this audio as invalid, FALSE otherwisepublic boolean isLooping()
public int getLoopInterval()
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||