Point end = new Point(x, z);
PropertyAnimation ani = new PropertyAnimation(this, "scrollpos");
ani.setStartValue(start);
ani.setEndValue(end);
ani.setDuration(duration);
ani.start();
}
}
public Point getCenterCoord() {
return mapOutsideToCoords(new Point((int) (getWidth() / 2), (int) (getHeight() / 2)));