|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.ui.input.InputSettings
net.rim.device.api.ui.input.TouchscreenSettings
public final class TouchscreenSettings
TouchscreenSettings contains a set of attributes associated
with a touch screen device (see Touchscreen
, TouchEvent
,
TouchGesture
). TouchscreenSettings
allows a Screen
or a UiApplication
to customize the generation
of touch input events by the user such as swipe sensitivity, tap tolerance, and detection
of pinch gestures.
To create an empty set of touch screen attributes to be populated with InputSettings.set(int, int)
,
invoke TouchscreenSettings.createEmptySet()
.
Field Summary | ||
---|---|---|
static int |
DETECT_FACE_PROXIMITY
Enables or disables face proximity detection in the OS. |
|
static int |
DETECT_HOVER
Setting to enable or disable the generation of HOVER gestures: 0 to disable, 1 to enable. |
|
static int |
DETECT_PINCH
Setting to enable or disable the generation of PINCH gestures: 0 to disable, 1 to enable. |
|
static int |
DETECT_SWIPE
Setting to enable or disable the generation of SWIPE gestures: 0 to disable, 1 to enable. |
|
static int |
HOVER_PERIOD
Interval in milliseconds at which HOVER gestures are generated. |
|
static int |
MOVE_THRESHOLD
Key for the Setting for the threshold in pixels at which MOVE events
are generated. |
|
static int |
SWIPE_SENSITIVITY
Key for the Setting for Sensitivity or ease at which SWIPE
gestures are generated: 6 for high (easy) to 0 for low (difficult). |
|
static int |
TAP_INTERVAL
Interval in milliseconds within which a subsequent TAP gesture must occur to be considered a
DOUBLE_TAP gesture. |
|
static int |
TAP_TOLERANCE
Radius in pixels within which a subsequent TAP gesture must occur to be considered a
DOUBLE_TAP gesture. |
Method Summary | ||
---|---|---|
static InputSettings |
createEmptySet()
Implements InputSettings.createEmptySet(). |
Methods inherited from class net.rim.device.api.ui.input.InputSettings |
---|
get, remove, removeAll, set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DETECT_SWIPE
SWIPE
gestures: 0 to disable, 1 to enable.
public static final int DETECT_HOVER
HOVER
gestures: 0 to disable, 1 to enable.
public static final int DETECT_PINCH
PINCH
gestures: 0 to disable, 1 to enable.
public static final int DETECT_FACE_PROXIMITY
public static final int MOVE_THRESHOLD
MOVE
events
are generated. For example, set MOVE_THRESHOLD
to 20 to receive a MOVE
event at every 20 pixels. Minimum threshold is 1 pixel. Maximum threshold is 50
pixels.
This is NOT the threshold itself. This is the 'key' used to set the threshold.
public static final int SWIPE_SENSITIVITY
SWIPE
gestures are generated: 6 for high (easy) to 0 for low (difficult).
This is NOT the sensitivity value itself. This is the 'key' used to set the sensitivity value.
public static final int HOVER_PERIOD
HOVER
gestures are generated. For example, set HOVER_PERIOD
to 500 to receive HOVER
gestures every 500 milliseconds.
Minimum period is 100 milliseconds. Maximum period is 1000 milliseconds.
This is NOT the period value itself. This is the 'key' used to set the period value.
public static final int TAP_INTERVAL
TAP
gesture must occur to be considered a
DOUBLE_TAP
gesture.
For example, set TAP_INTERVAL
to to 250 to
receive a DOUBLE_TAP
when the user initiates
a second TAP
within 250 milliseconds
of the first tap. Depends also on TouchscreenSettings.TAP_TOLERANCE
. Minimum interval is 100 milliseconds.
Maximum interval is 500 milliseconds.
This is NOT the interval value itself. This is the 'key' used to set the interval value.
public static final int TAP_TOLERANCE
TAP
gesture must occur to be considered a
DOUBLE_TAP
gesture.
For example, set TAP_TOLERANCE
to 50 to
receive a DOUBLE_TAP
when the user initiates
a second TAP
within 50 pixels of the first tap.
Depends also on TouchscreenSettings.TAP_INTERVAL
. Minimum tolerance is 10 pixels. Maximum tolerance
is 100 pixels.
This is NOT the tolerance value itself. This is the 'key' used to set the tolerance value.
Method Detail |
---|
public static InputSettings createEmptySet()
InputSettings
object to be populated with touch screen attributes
and values using set()
.
InputSettings
object for a touch screen device.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.