com.visioglobe.libVisioDevKit
Class VgISimpleGestureManipulatorListener
java.lang.Object
com.visioglobe.libVisioDevKit.VgReferenced
com.visioglobe.libVisioDevKit.VgISimpleGestureManipulatorListener
public class VgISimpleGestureManipulatorListener
- extends VgReferenced
Listener of simple gestures.
It is a convenience class to ease simple gestures handling.
- Note:
- A drag event always follows a pinch.
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VgISimpleGestureManipulatorListener
public VgISimpleGestureManipulatorListener(long cPtr,
boolean cMemoryOwn)
VgISimpleGestureManipulatorListener
public VgISimpleGestureManipulatorListener()
getCPtr
public static long getCPtr(VgISimpleGestureManipulatorListener obj)
finalize
protected void finalize()
- Overrides:
finalize
in class VgReferenced
delete
public void delete()
- Overrides:
delete
in class VgReferenced
swigDirectorDisconnect
protected void swigDirectorDisconnect()
swigReleaseOwnership
public void swigReleaseOwnership()
swigTakeOwnership
public void swigTakeOwnership()
onSimplePinch
public void onSimplePinch(VgGestureState pState,
float pSpan,
float pVelocity)
- Callback on a pinch gesture with two fingers.
- Parameters:
pState
- The state associated with the gesture.pSpan
- Distance in pixels between the two fingers.pVelocity
- Speed in pixels per milliseconds.
onSimpleDrag
public void onSimpleDrag(VgGestureState pState,
long pNbTouch,
float pAverageXOffset,
float pAverageYOffset)
- Callback on a drag gesture.
- Parameters:
pState
- The state associated with the gesture.pNbTouch
- Number of fingers on the touchpad.pAverageXOffset
- Average dragging offset in pixels since previous callback. The offset is computed as an average of each finger's offset.pAverageYOffset
- Average dragging offset in pixels since previous callback. The offset is computed as an average of each finger's offset.- Remark:
- This callback handles dragging gestures up to 2 fingers at the same time. With 3 fingers or more, this callback won't be triggered.
onClick
public void onClick(float x,
float y)
onDoubleClick
public void onDoubleClick(float x,
float y)