Class Quickstep

Class Quickstep

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

class Quickstep
extends Figur
Quickstep: Stores the information of the quickstep figures.

To initialize a spezial figur:

  Figur figur = new Quickstep(app, figNum, tempo, audioURL);
Whereat app the applet pointer is, figNum the number of the slow quickstep 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 initNaturalTurn 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 Quickstep(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 Quickstep
  public Quickstep(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