// the current frame
if (animationFrame == AnimationFrame.ONSHOW) {
animationFrame = AnimationFrame.ONDISPLAY;
// create a new animator
animatorHandlerOnDisplay = new Animator(DURATION, 1, Animator.RepeatBehavior.LOOP, this);
// start this new animator
animatorHandlerOnDisplay.start();
// start the panel timer for the animated logo
frame.panel.animationTimer.start();
} else {
// if the animation finished the second part,
// change the current frame
if (animationFrame == AnimationFrame.ONDISPLAY) {
animationFrame = AnimationFrame.ONCLOSE;
// create a new animator
animatorHandlerOnClose = new Animator(ANIMATIONSPEED, 1, Animator.RepeatBehavior.LOOP, this);
// start this new animator
animatorHandlerOnClose.start();
} else {