public void startAnimation ( ) { Date time = new Date ( ) ; this . beginAnimation = time . getTime ( ) ; this . endAnimation = beginAnimation + ( long ) ( animationTime * 1000 ) ; this . animate = true ; }
once animation is setup start the animation record the beginning and ending time for the animation