code: private void setAnimationParams(AnimationParams params) {
          if (params == null) {
              throw new IllegalArgumentException(
                      "params can't be null");
          }
          if (animateTimer != null) {
              animateTimer.stop();
          }
          animationParams = params;
          animateTimer = new Timer(animationParams.waitTime, animator);
          animateTimer.setInitialDelay(0);
      }
docs: Sets the parameters controlling the animation.
  
  @param params
  @throws IllegalArgumentException if params is null