public void resetTimer(int interval){
  timerDelay=interval;
  stopTimer();
  timer=new Timer();
  timer.scheduleAtFixedRate(new ManageGraphicsTask(SimpleAnimationLayer.this),0,timerDelay);
  if (timerButton != null) {
    timerButton.setSelected(true);
  }
}

public void resetTimer ( int interval ) { timerDelay = interval ; stopTimer ( ) ; timer = new Timer ( ) ; timer . scheduleAtFixedRate ( new ManageGraphicsTask ( SimpleAnimationLayer . this ) , 0 , timerDelay ) ; if ( timerButton != null ) { timerButton . setSelected ( true ) ; } }
called when the timer should be started .
