Class ScaleBranch
java.lang.Object
CollectableNode
SoundBranch
ScaleBranch
- public class ScaleBranch
- extends SoundBranch
Field Summary |
(package private) double |
factor
Amount to scale |
Constructor Summary |
ScaleBranch(double nufactor)
Construct a branch with this factor |
Method Summary |
Sound |
collect()
Collect all the sound from our children,
then collect from next. |
Sound |
collectAfter()
Collect all the sound from our children,
then collect from next. |
double |
getFactor()
Accessors |
void |
setFactor(double nufactor)
|
String |
toString()
Method to return a string with informaiton
about this branch |
factor
double factor
- Amount to scale
ScaleBranch
public ScaleBranch(double nufactor)
- Construct a branch with this factor
getFactor
public double getFactor()
- Accessors
setFactor
public void setFactor(double nufactor)
toString
public String toString()
- Method to return a string with informaiton
about this branch
- Overrides:
toString
in class SoundBranch
collect
public Sound collect()
- Collect all the sound from our children,
then collect from next.
Scale the children
- Overrides:
collect
in class SoundBranch
collectAfter
public Sound collectAfter()
- Collect all the sound from our children,
then collect from next.
Scale the next list, not the children
- Overrides:
collectAfter
in class SoundBranch