|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nokia.mid.ui.multipointtouch.MultipointTouch
public class MultipointTouch
MultipointTouch class provides access to data and configuration related to the multiple touch points.
The API imposes the restriction that the data related to the touch points (pointers' state and X & Y coordinates), got from MultipointTouch class, is only valid when the MIDlet provides implementation for the MultipointTouchListener interface. Provides applications access to register to be notified when a multipoint touch has occurred.
Notifications are sent asynchronously.
Field Summary | |
---|---|
static int |
POINTER_DRAGGED
Constant for the pointer drag. |
static int |
POINTER_PRESSED
Constant for the pointer press. |
static int |
POINTER_RELEASED
Constant for the pointer release. |
Method Summary | |
---|---|
void |
addMultipointTouchListener(MultipointTouchListener listener)
addMultipointTouchListener Registers a Multipoint Touch listener. |
static MultipointTouch |
getInstance()
getInstance Gets a reference to the MultipointTouch instance. |
static int |
getMaxPointers()
getMaxPointers The method returns the maximum number of pointers, that is touch points that can be recognized by the touch HW in the device. |
static int |
getState(int pointerId)
getState Current state of the pointer. |
static int |
getX(int pointerId)
getX Current X coordinate of the pointer. |
static int |
getY(int pointerId)
getY Current Y coordinate of the pointer. |
void |
removeMultipointTouchListener(MultipointTouchListener listener)
removeMultipointTouchListener Removes a Multipoint Touch listener. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int POINTER_PRESSED
Constant for the pointer press.
POINTER_PRESSED has the value 0x1.
public static final int POINTER_RELEASED
Constant for the pointer release.
POINTER_RELEASED has the value 0x2.
public static final int POINTER_DRAGGED
Constant for the pointer drag.
POINTER_DRAGGED has the value 0x3.
Method Detail |
---|
public void addMultipointTouchListener(MultipointTouchListener listener)
public static MultipointTouch getInstance()
public void removeMultipointTouchListener(MultipointTouchListener listener)
public static int getMaxPointers()
public static int getState(int pointerId)
public static int getX(int pointerId)
public static int getY(int pointerId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |