projekt  
  einleitung
  applet
  quellcode
über  
  info
  team
quellcode
 
JAVADOC
SOURCECODE
import java.awt.*;

public class Mass
{
  //coordinates
  double x;
  double y;
  //radius
  double r;
  //mass
  double m;
  //v-vector (in deltaT, the mass will be on the top of the vector)
  double xv;
  double yv;
  //color
  Color color;
  //name
  String name;

  /**
   * default-color-generator (for number 0- indefinite)
   */
  public static Color getColor(int number)
  {
    number++;
    number=number%11; // modulo
    Color color=null;
    switch(number)
    {
      case 0: color= Color.yellow; break; // number==10
      case 1: color= Color.blue; break;   // number==0
      case 2: color= Color.cyan; break;
      case 3: color= Color.darkGray; break;
      case 4: color= Color.gray; break;
      case 5: color= Color.green; break;  //   ..
      case 6: color= Color.lightGray; break;
      case 7: color= Color.magenta; break;
      case 8: color= Color.orange; break;
      case 9: color= Color.pink; break;
      case 10: color= Color.red; break;
      case 11: color= Color.white; break; // number==9
    }
    return color;
  }
}