Class JigsawPuzzle.Source
java.lang.Object
com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source
net.dermetfan.gdx.scenes.scene2d.ui.JigsawPuzzle.Source
- Enclosing class:
- JigsawPuzzle
public class JigsawPuzzle.Source
extends com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source
- Since:
- 0.10.0
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.PayloaddragStart(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer)voiddragStop(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Payload payload, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Target target)com.badlogic.gdx.scenes.scene2d.utils.DragAndDropgetDragAndDrop()floatgetMoveBackDuration()JigsawPuzzlegetPuzzle()voidsetDragAndDrop(com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop)voidsetMoveBackDuration(float moveBackDuration)Methods inherited from class com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source
drag, getActorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Source
public Source(com.badlogic.gdx.scenes.scene2d.Group board, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop)- Parameters:
dragAndDrop- thedragAndDrop
-
Source
public Source(com.badlogic.gdx.scenes.scene2d.Group board, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop, float moveBackDuration)- Parameters:
moveBackDuration- themoveBackDuration
-
-
Method Details
-
dragStart
public com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Payload dragStart(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer)- Specified by:
dragStartin classcom.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source
-
dragStop
public void dragStop(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Payload payload, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Target target)- Overrides:
dragStopin classcom.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source
-
getDragAndDrop
public com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop getDragAndDrop()- Returns:
- the
dragAndDrop
-
setDragAndDrop
public void setDragAndDrop(com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop)- Parameters:
dragAndDrop- thedragAndDropto set
-
getPuzzle
- Returns:
- the enclosing JigsawPuzzle instance
-
getMoveBackDuration
public float getMoveBackDuration()- Returns:
- the
moveBackDuration
-
setMoveBackDuration
public void setMoveBackDuration(float moveBackDuration)- Parameters:
moveBackDuration- themoveBackDurationto set
-