public final void setLocation(int x, int y) { if (position.x != x || position.y != y) { position.x = x; position.y = y; if (!this.isInvalid()) this.setInvalid(); } }