Class marimba.gui.AudioWidget
All Packages Class Hierarchy This Package Previous Next Index
Class marimba.gui.AudioWidget
java.lang.Object
|
+----marimba.gui.Widget
|
+----marimba.gui.ResourceWidget
|
+----marimba.gui.ImageWidget
|
+----marimba.gui.AudioWidget
- public class AudioWidget
- extends ImageWidget
A simple audio widget. It is a subclass if ImageWidget
just so that it can have a visual picture associated with it.
- Version:
- 1.14, 11/13/96
- Author:
- Arthur van Hoff
-
clickSound
- The sound that is played when the user
clicks on this widget.
-
enterSound
- The URL of the sound that is played
when the mouse enters this widget.
-
exitSound
- The URL of the sound that is played
when the mouse exits this widget.
-
loop
- Loop the audio
-
recent
- The most recent sound that was played.
-
restSound
- The URL of the sound that is played on a rest event.
-
startSound
- The URL of the sound that is played
when the widget is started.
-
stopSound
- The URL of the sound that is played
when the widget is stopped.
-
wakeSound
- The URL of the sound that is played on a wake event.
-
AudioWidget()
- Constructor.
-
getClickSound()
- Get the sound for clicking this widget.
-
getEnterSound()
- Get the sound for entering this widget.
-
getExitSound()
- Get the sound for exiting this widget.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getRestSound()
- Get the sound for the rest event.
-
getStartSound()
- Get the sound for starting this widget.
-
getStopSound()
- Get the sound for stopping this widget.
-
getWakeSound()
- Get the sound for the wake event.
-
handleEvent(Event)
- Play the enter/exit/click sound (if any)
-
isLoop()
- Check whether the widget loops.
-
paramString(StringBuffer)
- Debugging.
-
play(String)
- Play a sound.
-
setClickSound(String)
- Set the sound for clicking this widget.
-
setEnterSound(String)
- Set the sound for entering this widget.
-
setExitSound(String)
- Set the sound for exiting this widget.
-
setLoop(boolean)
- Set loop;
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setRestSound(String)
- Set the sound for the rest event.
-
setStartSound(String)
- Set the sound for starting this widget.
-
setStopSound(String)
- Set the sound for stopping this widget.
-
setWakeSound(String)
- Set the sound for the wake event.
-
start()
- Play the start sound (if any)
-
stop()
- Play the stop sound (if any)
loop
public boolean loop
- Loop the audio
enterSound
public String enterSound
- The URL of the sound that is played
when the mouse enters this widget.
- See Also:
- getEnterSound, setEnterSound
exitSound
public String exitSound
- The URL of the sound that is played
when the mouse exits this widget.
- See Also:
- getExitSound, setEnterSound
startSound
public String startSound
- The URL of the sound that is played
when the widget is started.
- See Also:
- getStartSound, setStartSound
stopSound
public String stopSound
- The URL of the sound that is played
when the widget is stopped.
- See Also:
- getStopSound, setStopSound
restSound
public String restSound
- The URL of the sound that is played on a rest event.
- See Also:
- getRestSound, setRestSound
wakeSound
public String wakeSound
- The URL of the sound that is played on a wake event.
- See Also:
- getWakeSound, setWakeSound
clickSound
public String clickSound
- The sound that is played when the user
clicks on this widget.
- See Also:
- getClickSound, setClickSound
recent
public AudioClip recent
- The most recent sound that was played.
AudioWidget
public AudioWidget()
- Constructor.
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class ImageWidget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class ImageWidget
play
public void play(String src)
- Play a sound.
- Overrides:
- play in class Widget
isLoop
public boolean isLoop()
- Check whether the widget loops.
setLoop
public void setLoop(boolean loop)
- Set loop;
getEnterSound
public String getEnterSound()
- Get the sound for entering this widget.
- See Also:
- enterSound
setEnterSound
public void setEnterSound(String enterSound)
- Set the sound for entering this widget.
Specify null if no sound must be played.
- See Also:
- enterSound
getExitSound
public String getExitSound()
- Get the sound for exiting this widget.
- See Also:
- exitSound
setExitSound
public void setExitSound(String exitSound)
- Set the sound for exiting this widget.
Specify null if no sound must be played.
- See Also:
- exitSound
getStartSound
public String getStartSound()
- Get the sound for starting this widget.
- See Also:
- startSound
setStartSound
public void setStartSound(String startSound)
- Set the sound for starting this widget.
Specify null if no sound must be played.
- See Also:
- startSound
getStopSound
public String getStopSound()
- Get the sound for stopping this widget.
- See Also:
- stopSound
setStopSound
public void setStopSound(String stopSound)
- Set the sound for stopping this widget.
Specify null if no sound must be played.
- See Also:
- stopSound
getRestSound
public String getRestSound()
- Get the sound for the rest event.
- See Also:
- restSound
setRestSound
public void setRestSound(String restSound)
- Set the sound for the rest event.
Specify null if no sound must be played.
- See Also:
- restSound
getWakeSound
public String getWakeSound()
- Get the sound for the wake event.
- See Also:
- wakeSound
setWakeSound
public void setWakeSound(String wakeSound)
- Set the sound for the wake event.
Specify null if no sound must be played.
- See Also:
- wakeSound
getClickSound
public String getClickSound()
- Get the sound for clicking this widget.
- See Also:
- clickSound
setClickSound
public void setClickSound(String clickSound)
- Set the sound for clicking this widget.
Specify null if no sound must be played.
- See Also:
- clickSound
start
public void start()
- Play the start sound (if any)
- Overrides:
- start in class ImageWidget
stop
public void stop()
- Play the stop sound (if any)
- Overrides:
- stop in class Widget
handleEvent
public boolean handleEvent(Event evt)
- Play the enter/exit/click sound (if any)
- Overrides:
- handleEvent in class ImageWidget
paramString
public void paramString(StringBuffer buf)
- Debugging.
- Overrides:
- paramString in class ImageWidget
All Packages Class Hierarchy This Package Previous Next Index