# HG changeset patch # User dermetfan # Date 1422465510 -3600 # Wed Jan 28 18:18:30 2015 +0100 # Node ID 032f6222918bab0e92ba4715d56f1cdf0f6e5ebc # Parent 5495d26839b6b0a7ba25665173169f5632b684ed setters and javadoc diff --git a/core/src/net/dermetfan/jigsawPuzzle/puzzle/JigsawPuzzle.java b/core/src/net/dermetfan/jigsawPuzzle/puzzle/JigsawPuzzle.java --- a/core/src/net/dermetfan/jigsawPuzzle/puzzle/JigsawPuzzle.java +++ b/core/src/net/dermetfan/jigsawPuzzle/puzzle/JigsawPuzzle.java @@ -119,6 +119,7 @@ super(drawable); } + /** @param drawable Sets the {@link #setSlot(float, float) slot} to the drawable's {@link PolygonRegionDrawable#getPolygonX() polygonX} and {@link PolygonRegionDrawable#getPolygonY() polygonY} if the given drawable is a {@link PolygonRegionDrawable}. Otherwise sets it to 0:0. */ @Override public void setDrawable(Drawable drawable) { super.setDrawable(drawable); @@ -169,16 +170,33 @@ // getters and setters + /** @param slotX the {@link #slotX} to set + * @param slotY the {@link #slotY} to set */ + public void setSlot(float slotX, float slotY) { + this.slotX = slotX; + this.slotY = slotY; + } + /** @return the {@link #slotX} */ public float getSlotX() { return slotX; } + /** @param slotX the {@link #slotX} to set */ + public void setSlotX(float slotX) { + this.slotX = slotX; + } + /** @return the {@link #slotY} */ public float getSlotY() { return slotY; } + /** @param slotY the {@link #slotY} to set */ + public void setSlotY(float slotY) { + this.slotY = slotY; + } + } /** @author dermetfan */