ants.move.core.views.audio
Class AudioView

java.lang.Object
  |
  +--ants.move.core.views.DynamicObject
        |
        +--ants.move.core.views.audio.AudioView
All Implemented Interfaces:
AudioListener, ViewInterface, VRMLEventListener

public class AudioView
extends DynamicObject
implements AudioListener, ViewInterface, VRMLEventListener

Implementation of DynamicObject Audio.

Version:
1.30 Build 2000
Author:
Carles Pairot (cpairot@tinet.org), Oriol Montalā (omontala@tinet.org), Francesc Piņas (fpd@tinet.org)

Constructor Summary
AudioView()
          Sole & void constructor.
 
Method Summary
 void destroy()
          destroy
 void eventPerformed()
          Executed when a VRML Event is received.
 AudioModel getModel()
           
 void init(java.util.Hashtable ht)
           
 void loadAudio()
          Load audio
 void loadVRMLRepresentation()
           
 void playAudio(java.lang.String audioTrack)
          Executed when a VRML Event is received.
 void stopAudio()
          Stop
 
Methods inherited from class ants.move.core.views.DynamicObject
addListener, catchNode, getBrowser, getName, getNode, getVRMLNodeName, getZone, getZoneName, printMsg, setaddChValue, setaddChValue, setBrowser, setChNodes, setName, setreChValue, setreChValue, setVRMLNodeName, setZoneName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioView

public AudioView()
Sole & void constructor. Used when newInstance() method is called.
Parameters:
params - None
Throws:
exceptions - No exceptions thrown
Method Detail

init

public void init(java.util.Hashtable ht)
Specified by:
init in interface ViewInterface

loadVRMLRepresentation

public void loadVRMLRepresentation()

playAudio

public void playAudio(java.lang.String audioTrack)
Executed when a VRML Event is received.
Specified by:
playAudio in interface AudioListener
Parameters:
params - None
Returns:
No return value
Throws:
exceptions - No exceptions thrown

loadAudio

public void loadAudio()
Description copied from interface: AudioListener
Load audio
Specified by:
loadAudio in interface AudioListener

stopAudio

public void stopAudio()
Description copied from interface: AudioListener
Stop
Specified by:
stopAudio in interface AudioListener

getModel

public AudioModel getModel()

destroy

public void destroy()
Description copied from interface: AudioListener
destroy
Specified by:
destroy in interface AudioListener

eventPerformed

public void eventPerformed()
Description copied from interface: VRMLEventListener
Executed when a VRML Event is received.
Specified by:
eventPerformed in interface VRMLEventListener
Overrides:
eventPerformed in class DynamicObject
Following copied from interface: ants.move.core.views.VRMLEventListener
Parameters:
params - None
Returns:
No return value
Throws:
exceptions - No exceptions thrown


Developers: Oriol Montala, Carles Pairot, Francesc Pinas2000 - 2002
Departament d'Enginyeria Informatica i Matematiques
Escola Tecnica Superior d'Enginyeria
Universitat Rovira i Virgili