|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSoundElement
Sounds for a linked list
Field Summary | |
(package private) Sound |
mySound
The sound this element is associated with |
SoundElement |
next
The next element to process |
Constructor Summary | |
SoundElement(Sound aSound)
Constructor sets next to null and references the input sound. |
Method Summary | |
void |
add(SoundElement node)
Add the input node after the last node in this list. |
void |
blockingPlay()
|
Sound |
collect()
Collect all the sounds from me on, recursively. |
SoundElement |
copyNode()
copyNode returns a copy of this element |
SoundElement |
getNext()
|
Sound |
getSound()
Return my sound |
void |
insertAfter(SoundElement node)
Insert the input node after this node. |
SoundElement |
last()
Return the last element in the list |
void |
playFromMeOn()
Play the list of sound elements after me |
void |
playSound()
Play JUST me, blocked. |
void |
remove(SoundElement node)
Method to remove node from list, fixing links appropriately. |
void |
repeatNext(SoundElement nextOne,
int count)
Repeat the input phrase for the number of times specified. |
void |
replace(Sound oldSound,
Sound newSound)
Replace the one sound with the other sound in all the elements from me on. |
void |
setNext(SoundElement nextOne)
Methods to set and get next elements |
String |
toString()
Provide a printable representation of me |
void |
weave(SoundElement nextOne,
int count,
int skipAmount)
Weave the input sound count times every skipAmount elements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
Sound mySound
public SoundElement next
Constructor Detail |
public SoundElement(Sound aSound)
Method Detail |
public Sound getSound()
public void playSound()
public void blockingPlay()
public String toString()
public void setNext(SoundElement nextOne)
nextOne
- next element in listpublic SoundElement getNext()
public void playFromMeOn()
public Sound collect()
public void remove(SoundElement node)
node
- element to remove from list.public void insertAfter(SoundElement node)
node
- element to insert after this.public SoundElement last()
public void add(SoundElement node)
node
- element to insert after this.public SoundElement copyNode()
public void repeatNext(SoundElement nextOne, int count)
nextOne
- node to be copied in to listcount
- number of times to copy it in.public void weave(SoundElement nextOne, int count, int skipAmount)
nextOne
- SoundElement to be copied into the listcount
- how many times to copyskipAmount
- how many nodes to skip per weavepublic void replace(Sound oldSound, Sound newSound)
oldSound
- sound to be replacednewSound
- sound to put in its place
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |