|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CollectableNode SoundBranch ScaleBranch
public class ScaleBranch
Class that scales the children
Constructor Summary | |
---|---|
ScaleBranch(double theFactor)
Construct a branch with the passed factor |
Method Summary | |
---|---|
Sound |
collect()
Collect all the sound from the children, then collect from next. |
Sound |
collectAfter()
Collect all the sound from the children, then collect from next. |
Sound |
collectSwap()
Collect all the sound from next and then our children Scale the children But return the next BEFORE the children |
double |
getFactor()
Method to get the scaling factor |
void |
setFactor(double theFactor)
Method to set the scaling factor |
String |
toString()
Method to return a string with information about this branch |
Methods inherited from class SoundBranch |
---|
addChild, getFirstChild |
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 ScaleBranch(double theFactor)
theFactor
- the factor to useMethod Detail |
---|
public double getFactor()
public void setFactor(double theFactor)
theFactor
- the new factor to usepublic String toString()
toString
in class SoundBranch
public Sound collect()
collect
in class SoundBranch
public Sound collectAfter()
collectAfter
in class SoundBranch
public Sound collectSwap()
collectSwap
in class SoundBranch
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |