if (animationsEnabled) {
if (ani != null && ani.isRunning()) {
ani.abort();
}
ani = new SwingAnimator(300, new SplineInterpolator(0.2, 0.2));
ani.addAnimatorListener(new IAnimatorListener() {
private double oldZ, neoZ;
private double oldX, oldY, newX, newY;