/* Auteur: Nicolas JANEY, nico@univ-fcomte.fr */

public class ThreadDessinOffLine extends Thread {

  private DessinOffLine dol ;
  private boolean bRun ;

  public ThreadDessinOffLine(DessinOffLine dol) {
    super();
    this.dol = dol;
    bRun = false;
  }

  public void run() {
    bRun = true;
    while (bRun) {
      try {
        sleep(150); }
      catch(InterruptedException ie) {} ;
    dol.a += 0.05;
    dol.repaint(); }
  }
}