Package gov.nasa.worldwind.gesture
Class GestureRecognizer
- java.lang.Object
-
- gov.nasa.worldwind.gesture.GestureRecognizer
-
- Direct Known Subclasses:
PanRecognizer
,PinchRecognizer
,RotationRecognizer
public class GestureRecognizer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GestureRecognizer()
GestureRecognizer(GestureListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(GestureListener listener)
java.util.List<GestureListener>
getListeners()
int
getState()
float
getTranslationX()
float
getTranslationY()
float
getX()
float
getY()
boolean
isEnabled()
boolean
onTouchEvent(android.view.MotionEvent event)
void
removeListener(GestureListener listener)
void
setEnabled(boolean enabled)
void
setTranslationX(float x)
void
setTranslationY(float y)
-
-
-
Constructor Detail
-
GestureRecognizer
public GestureRecognizer()
-
GestureRecognizer
public GestureRecognizer(GestureListener listener)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getState
public int getState()
-
getX
public float getX()
-
getY
public float getY()
-
getTranslationX
public float getTranslationX()
-
setTranslationX
public void setTranslationX(float x)
-
getTranslationY
public float getTranslationY()
-
setTranslationY
public void setTranslationY(float y)
-
addListener
public void addListener(GestureListener listener)
-
removeListener
public void removeListener(GestureListener listener)
-
getListeners
public java.util.List<GestureListener> getListeners()
-
onTouchEvent
public boolean onTouchEvent(android.view.MotionEvent event)
-
-