Class SlowWaltz

Class SlowWaltz

java.lang.Object
   |
   +----Figur
           |
           +----SlowWaltz

class SlowWaltz
extends Figur
Slow Waltz: Stores the information of the slow waltz figures.

To initialize a spezial figur:

  Figur figur = new SlowWaltz(app, figNum, tempo, audioURL);
Whereat app the applet pointer is, figNum the number of the slow waltz figur you want, tempo the speed of the sound defined by the audioURL.

To add a new figur:

  1. Add the name of the figur into FigNames_{eng,ger}.
  2. Add an initialization function (use initNatTurn as template)
  3. Add your initialization function into the switch statement of the constructor.
If you don't have more than 4 figures, you don't have to change anything in class Dance. If you have more figures, you only have to add more space for the figur-buttons.

Variable Index

 o FigNames_eng
Array of the english names of all implemented figures.
 o FigNames_ger
Array of the german names of all implemented figures.
 o Name_eng
English name of this dance.
 o Name_ger
German name of this dance.

Constructor Index

 o SlowWaltz(Dance, int, int, URL)
Initialze a dance and select a special figur out of this dance.

Method Index

 o toString()
Returns a String object representing.

Variables

 o Name_eng
  public final static String Name_eng
English name of this dance.
 o Name_ger
  public final static String Name_ger
German name of this dance.
 o FigNames_eng
  public final static String FigNames_eng[]
Array of the english names of all implemented figures.
 o FigNames_ger
  public final static String FigNames_ger[]
Array of the german names of all implemented figures.

Constructors

 o SlowWaltz
  public SlowWaltz(Dance app,
                   int danceNum,
                   int temp,
                   URL audioURL)
Initialze a dance and select a special figur out of this dance.
Parameters:
app - pointer to the dance applet.
danceNum - number of the choosen figur. The number is defined relative to the names in the FigNames_* array.
tempo - of the given audio file
audioURL - URL description of the given audio file. Might be null if "no music" is selected.

Methods

 o toString
  public String toString()
Returns a String object representing.
Overrides:
toString in class Figur