/** * Sets the state of this object to animating on or off. * * @param flag * true to make this animating * * @see Animatable interface */ public synchronized void setAnimating(final boolean flag) { final boolean oldValue = animating; animating = flag && isAnimatable(); // tell animation manager if (oldValue != animating) { final AnimationManager am = kernel.getAnimatonManager(); if (animating) { am.addAnimatedGeo(this); } else { am.removeAnimatedGeo(this); } } }