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

Variable Index

 o clickSound
The sound that is played when the user clicks on this widget.
 o enterSound
The URL of the sound that is played when the mouse enters this widget.
 o exitSound
The URL of the sound that is played when the mouse exits this widget.
 o loop
Loop the audio
 o recent
The most recent sound that was played.
 o restSound
The URL of the sound that is played on a rest event.
 o startSound
The URL of the sound that is played when the widget is started.
 o stopSound
The URL of the sound that is played when the widget is stopped.
 o wakeSound
The URL of the sound that is played on a wake event.

Constructor Index

 o AudioWidget()
Constructor.

Method Index

 o getClickSound()
Get the sound for clicking this widget.
 o getEnterSound()
Get the sound for entering this widget.
 o getExitSound()
Get the sound for exiting this widget.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getRestSound()
Get the sound for the rest event.
 o getStartSound()
Get the sound for starting this widget.
 o getStopSound()
Get the sound for stopping this widget.
 o getWakeSound()
Get the sound for the wake event.
 o handleEvent(Event)
Play the enter/exit/click sound (if any)
 o isLoop()
Check whether the widget loops.
 o paramString(StringBuffer)
Debugging.
 o play(String)
Play a sound.
 o setClickSound(String)
Set the sound for clicking this widget.
 o setEnterSound(String)
Set the sound for entering this widget.
 o setExitSound(String)
Set the sound for exiting this widget.
 o setLoop(boolean)
Set loop;
 o setProperties(PropertyList)
Set the properties of this widget.
 o setRestSound(String)
Set the sound for the rest event.
 o setStartSound(String)
Set the sound for starting this widget.
 o setStopSound(String)
Set the sound for stopping this widget.
 o setWakeSound(String)
Set the sound for the wake event.
 o start()
Play the start sound (if any)
 o stop()
Play the stop sound (if any)

Variables

 o loop
  public boolean loop
Loop the audio
 o enterSound
  public String enterSound
The URL of the sound that is played when the mouse enters this widget.
See Also:
getEnterSound, setEnterSound
 o exitSound
  public String exitSound
The URL of the sound that is played when the mouse exits this widget.
See Also:
getExitSound, setEnterSound
 o startSound
  public String startSound
The URL of the sound that is played when the widget is started.
See Also:
getStartSound, setStartSound
 o stopSound
  public String stopSound
The URL of the sound that is played when the widget is stopped.
See Also:
getStopSound, setStopSound
 o restSound
  public String restSound
The URL of the sound that is played on a rest event.
See Also:
getRestSound, setRestSound
 o wakeSound
  public String wakeSound
The URL of the sound that is played on a wake event.
See Also:
getWakeSound, setWakeSound
 o clickSound
  public String clickSound
The sound that is played when the user clicks on this widget.
See Also:
getClickSound, setClickSound
 o recent
  public AudioClip recent
The most recent sound that was played.

Constructors

 o AudioWidget
  public AudioWidget()
Constructor.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ImageWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ImageWidget
 o play
  public void play(String src)
Play a sound.
Overrides:
play in class Widget
 o isLoop
  public boolean isLoop()
Check whether the widget loops.
 o setLoop
  public void setLoop(boolean loop)
Set loop;
 o getEnterSound
  public String getEnterSound()
Get the sound for entering this widget.
See Also:
enterSound
 o setEnterSound
  public void setEnterSound(String enterSound)
Set the sound for entering this widget. Specify null if no sound must be played.
See Also:
enterSound
 o getExitSound
  public String getExitSound()
Get the sound for exiting this widget.
See Also:
exitSound
 o setExitSound
  public void setExitSound(String exitSound)
Set the sound for exiting this widget. Specify null if no sound must be played.
See Also:
exitSound
 o getStartSound
  public String getStartSound()
Get the sound for starting this widget.
See Also:
startSound
 o setStartSound
  public void setStartSound(String startSound)
Set the sound for starting this widget. Specify null if no sound must be played.
See Also:
startSound
 o getStopSound
  public String getStopSound()
Get the sound for stopping this widget.
See Also:
stopSound
 o setStopSound
  public void setStopSound(String stopSound)
Set the sound for stopping this widget. Specify null if no sound must be played.
See Also:
stopSound
 o getRestSound
  public String getRestSound()
Get the sound for the rest event.
See Also:
restSound
 o setRestSound
  public void setRestSound(String restSound)
Set the sound for the rest event. Specify null if no sound must be played.
See Also:
restSound
 o getWakeSound
  public String getWakeSound()
Get the sound for the wake event.
See Also:
wakeSound
 o setWakeSound
  public void setWakeSound(String wakeSound)
Set the sound for the wake event. Specify null if no sound must be played.
See Also:
wakeSound
 o getClickSound
  public String getClickSound()
Get the sound for clicking this widget.
See Also:
clickSound
 o setClickSound
  public void setClickSound(String clickSound)
Set the sound for clicking this widget. Specify null if no sound must be played.
See Also:
clickSound
 o start
  public void start()
Play the start sound (if any)
Overrides:
start in class ImageWidget
 o stop
  public void stop()
Play the stop sound (if any)
Overrides:
stop in class Widget
 o handleEvent
  public boolean handleEvent(Event evt)
Play the enter/exit/click sound (if any)
Overrides:
handleEvent in class ImageWidget
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class ImageWidget

All Packages  Class Hierarchy  This Package  Previous  Next  Index