|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoundElement
public class SoundElement
Sounds for a linked list
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()
Play JUST me, blocked. |
Sound |
collect()
Collect all the sounds from me on, recursively into one sound. |
SoundElement |
copyNode()
copyNode returns a copy of this element |
SoundElement |
getNext()
Method to get the next element |
Sound |
getSound()
The method to get the sound |
void |
insertAfter(SoundElement node)
Insert the input node after this node. |
SoundElement |
last()
Return the last element in the list |
static void |
main(String[] args)
|
void |
playFromMeOn()
Play the list of sound elements after me |
void |
playSound()
Play JUST me, blocked. |
void |
remove(SoundElement node)
Method to remove a node from the 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)
Method to set the next element |
String |
toString()
Provide a printable representation of me |
void |
weave(SoundElement nextOne,
int count,
int skipAmount)
Weave the input song node count times every skipAmount nodes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SoundElement(Sound aSound)
aSound
- the sound to useMethod Detail |
---|
public Sound getSound()
public void playSound()
public void blockingPlay()
public String toString()
toString
in class Object
public void setNext(SoundElement nextOne)
nextOne
- next element to add to the listpublic SoundElement getNext()
public void playFromMeOn()
public Sound collect()
public void remove(SoundElement node)
node
- the element to remove from list.public void insertAfter(SoundElement node)
node
- the 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
- the node to be copied in to listcount
- the number of times to copy it in.public void weave(SoundElement nextOne, int count, int skipAmount)
nextOne
- node 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 placepublic static void main(String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |