|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CollectableNode SoundBranch
public class SoundBranch
Class that represents a branch in a tree of sounds
Constructor Summary | |
---|---|
SoundBranch()
Construct a branch with the first child and next as null |
Method Summary | |
---|---|
void |
addChild(CollectableNode child)
Method to add a node to the end of the children list |
Sound |
collect()
Collect all the sound from our firstChild, then collect from next. |
Sound |
collectAfter()
Collect all the sound from our firstChild, then collect from next. |
Sound |
collectSwap()
Collect all the sound from our firstChild, then collect from next. |
CollectableNode |
getFirstChild()
Method to return the first child |
String |
toString()
Method to return a string with information about this branch |
Methods inherited from class CollectableNode |
---|
add, getNext, insertAfter, last, playFromMeOn, remove, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SoundBranch()
Method Detail |
---|
public CollectableNode getFirstChild()
public String toString()
toString
in class Object
public void addChild(CollectableNode child)
child
- the child to addpublic Sound collect()
collect
in class CollectableNode
public Sound collectAfter()
collectAfter
in class CollectableNode
public Sound collectSwap()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |