|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ants.core.Thing
|
+--ants.move.core.models.audio.AudioModel
Implementation of Audio Model.
| Constructor Summary | |
AudioModel()
Sole & void constructor. |
|
| Method Summary | |
void |
addAudioListener(AudioListener aList)
Add Audio listener |
void |
controlAudio(boolean p)
Set audio play or stop |
void |
destroy()
Destroy method |
ants.core.Thing |
getAudioThing()
Get audio thing |
java.lang.String |
getAudioThingId()
Get audio thing key |
java.lang.String |
getAudioTrack()
Get audio track |
java.lang.String |
getType()
tool type |
void |
init()
Initialize model |
java.lang.String |
isPlaying()
Is playing |
void |
loadAudio(java.lang.String thingKey)
|
void |
propertyChange(ants.core.PropertyChangeEvent evt)
Method triggered in response to a property change. |
void |
removeAudioListener(AudioListener aList)
Remove audio listener |
void |
setAudioThing(java.lang.String thingKey)
Set audio thing in tool |
| Methods inherited from class ants.core.Thing |
addPropertyChangeListener, addTokenToProperty, eventArrived, getContext, getDescription, getIndexedProperty, getIndexedProperty, getIndexedPropertyNames, getIndexedPropertySize, getName, getPlace, getProperty, getPropertyNames, getThingGateway, getThingId, incrementProperty, init, removePropertyChangeListener, setProperty, triggerEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AudioModel()
| Method Detail |
public void init()
init in class ants.core.Thingpublic void addAudioListener(AudioListener aList)
aList - listenerpublic void removeAudioListener(AudioListener aList)
aList - listenerpublic void setAudioThing(java.lang.String thingKey)
thingKey - keypublic java.lang.String getAudioThingId()
public ants.core.Thing getAudioThing()
public void controlAudio(boolean p)
p - true=play false=stoppublic java.lang.String isPlaying()
public void loadAudio(java.lang.String thingKey)
public java.lang.String getAudioTrack()
public void propertyChange(ants.core.PropertyChangeEvent evt)
ants.core.PropertyChangeListenerpropertyChange in interface ants.core.PropertyChangeListenerants.core.PropertyChangeListenerpublic java.lang.String getType()
getType in class ants.core.Thingpublic void destroy()
destroy in class ants.core.Thing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||