Class ScaleBranch

java.lang.Object
  extended byCollectableNode
      extended bySoundBranch
          extended byScaleBranch

public class ScaleBranch
extends SoundBranch


Field Summary
(package private)  double factor
          Amount to scale
 
Fields inherited from class SoundBranch
children
 
Fields inherited from class CollectableNode
next
 
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
 
Methods inherited from class SoundBranch
addChild
 
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
 

Field Detail

factor

double factor
Amount to scale

Constructor Detail

ScaleBranch

public ScaleBranch(double nufactor)
Construct a branch with this factor

Method Detail

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