@@ 119,6 119,7 @@ public class JigsawPuzzle {
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 @@ public class JigsawPuzzle {
// 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 */