com.visioglobe.libVisioDevKit
Class VgISimpleGestureManipulatorListener

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgReferenced
      extended by 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.

Field Summary
 
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced
swigCMemOwn, swigRefPtr
 
Constructor Summary
VgISimpleGestureManipulatorListener()
           
VgISimpleGestureManipulatorListener(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
 void delete()
           
protected  void finalize()
           
static long getCPtr(VgISimpleGestureManipulatorListener obj)
           
 void onClick(float x, float y)
           
 void onDoubleClick(float x, float y)
           
 void onSimpleDrag(VgGestureState pState, long pNbTouch, float pAverageXOffset, float pAverageYOffset)
          Callback on a drag gesture.
 void onSimplePinch(VgGestureState pState, float pSpan, float pVelocity)
          Callback on a pinch gesture with two fingers.
protected  void swigDirectorDisconnect()
           
 void swigReleaseOwnership()
           
 void swigTakeOwnership()
           
 
Methods inherited from class com.visioglobe.libVisioDevKit.VgReferenced
getCPtr, getNbReferences, ref, unref
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VgISimpleGestureManipulatorListener

public VgISimpleGestureManipulatorListener(long cPtr,
                                           boolean cMemoryOwn)

VgISimpleGestureManipulatorListener

public VgISimpleGestureManipulatorListener()
Method Detail

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)

VisioDevKit 2.0, Visioglobe® 2013