com.badlogic.gdx.scenes.scene2d.utils
Class DragScrollListener

java.lang.Object
  extended by com.badlogic.gdx.scenes.scene2d.InputListener
      extended by com.badlogic.gdx.scenes.scene2d.utils.DragListener
          extended by com.badlogic.gdx.scenes.scene2d.utils.DragScrollListener
All Implemented Interfaces:
EventListener

public class DragScrollListener
extends DragListener

Causes a scroll pane to scroll when a drag goes outside the bounds of the scroll pane.

Author:
Nathan Sweet

Constructor Summary
DragScrollListener(ScrollPane scroll)
           
 
Method Summary
 void drag(InputEvent event, float x, float y, int pointer)
           
 void dragStop(InputEvent event, float x, float y, int pointer)
           
 void setup(float minSpeedPixels, float maxSpeedPixels, float tickSecs, float rampSecs)
           
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.utils.DragListener
cancel, dragStart, getButton, getDeltaX, getDeltaY, getTapSquareSize, getTouchDownX, getTouchDownY, isDragging, setButton, setTapSquareSize, touchDown, touchDragged, touchUp
 
Methods inherited from class com.badlogic.gdx.scenes.scene2d.InputListener
enter, exit, handle, keyDown, keyTyped, keyUp, mouseMoved, scrolled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragScrollListener

public DragScrollListener(ScrollPane scroll)
Method Detail

setup

public void setup(float minSpeedPixels,
                  float maxSpeedPixels,
                  float tickSecs,
                  float rampSecs)

drag

public void drag(InputEvent event,
                 float x,
                 float y,
                 int pointer)
Overrides:
drag in class DragListener

dragStop

public void dragStop(InputEvent event,
                     float x,
                     float y,
                     int pointer)
Overrides:
dragStop in class DragListener


Copyright © 2013. All Rights Reserved.