Adds a setPosition function that accepts a Point object.
@@ -674,6 +674,16 @@ public final class TileGrid {
position.setLocation(x, y);
}
+ /**
+ * Sets the new x/y-axis coordinates of the grid within it's parent.
+ *
+ * @param position
+ * The new x/y-axis coordinates.
+ */
+ public void setPosition(final Point position) {
+ this.position.setLocation(position);
+ }
+
/**
* Sets the new x-axis coordinate of the grid within it's parent.
*
