|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.new_lib.audio_renderer
This class describes an audio segment that is to be "rendered" (aka played). Currently, this just wraps a java.applet.AudioClip object for an audio icon and a piece of text that should be rendered with it. This is primarily a placeholder for something more reasonable later (since applet audio clips are too limited to use effectively). As a result, this class (and its API) are highly likely to change.
Field Summary | |
protected java.applet.AudioClip |
_audio_icon
The audio icon portion of this sound. |
protected java.lang.String |
_text_to_speak
The text to be spoken with this sound |
Constructor Summary | |
audio_renderer()
Constructor for an empty audio rendition. |
|
audio_renderer(java.applet.AudioClip aud_icon)
Constructor with just an audio icon. |
|
audio_renderer(java.applet.AudioClip aud_icon,
java.lang.String txt)
Full constructor. |
|
audio_renderer(java.lang.String txt)
Constructor with just text to be spoken. |
Method Summary | |
java.applet.AudioClip |
audio_icon()
The audio icon portion of this sound. |
java.lang.Object |
clone()
Generic clone operation |
audio_renderer |
copy()
Clone operation with a correct type |
void |
play()
Play this piece of audio. |
void |
set_audio_icon(java.applet.AudioClip new_clip)
Set the audio icon portion of this sound. |
void |
set_text_to_speak(java.lang.String new_text)
Set the text to be spoken with this sound. |
void |
stop_playing()
Stop playing this audio. |
java.lang.String |
text_to_speak()
The text to be spoken with this sound |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.applet.AudioClip _audio_icon
protected java.lang.String _text_to_speak
Constructor Detail |
public audio_renderer(java.applet.AudioClip aud_icon, java.lang.String txt)
AudioClip
- aud_icon an audio icon to playString
- txt a text string providing additional content to
be spoken.public audio_renderer(java.applet.AudioClip aud_icon)
AudioClip
- aud_icon an audio icon to playpublic audio_renderer(java.lang.String txt)
String
- txt a text string providing additional content to
be spoken.public audio_renderer()
Method Detail |
public java.lang.Object clone()
public audio_renderer copy()
public java.applet.AudioClip audio_icon()
public void set_audio_icon(java.applet.AudioClip new_clip)
AudioClip
- new_clip a new clip for the audio iconpublic java.lang.String text_to_speak()
public void set_text_to_speak(java.lang.String new_text)
String
- new_text new text valuepublic void play()
public void stop_playing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |