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

    Constructors
    Constructor Description
    Source​(com.badlogic.gdx.scenes.scene2d.Group board, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop)  
    Source​(com.badlogic.gdx.scenes.scene2d.Group board, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop, float moveBackDuration)  
  • Method Summary

    Modifier and Type Method Description
    com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Payload dragStart​(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer)  
    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)  
    com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop getDragAndDrop()  
    float getMoveBackDuration()  
    JigsawPuzzle getPuzzle()  
    void setDragAndDrop​(com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop)  
    void setMoveBackDuration​(float moveBackDuration)  

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop.Source

    drag, getActor

    Methods 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 - the dragAndDrop
    • Source

      public Source​(com.badlogic.gdx.scenes.scene2d.Group board, com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop dragAndDrop, float moveBackDuration)
      Parameters:
      moveBackDuration - the moveBackDuration
  • 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:
      dragStart in class com.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:
      dragStop in class com.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 - the dragAndDrop to set
    • getPuzzle

      public JigsawPuzzle getPuzzle()
      Returns:
      the enclosing JigsawPuzzle instance
    • getMoveBackDuration

      public float getMoveBackDuration()
      Returns:
      the moveBackDuration
    • setMoveBackDuration

      public void setMoveBackDuration​(float moveBackDuration)
      Parameters:
      moveBackDuration - the moveBackDuration to set