net.rim.device.api.lbs.maps
Class MapConstants

java.lang.Object
  extended by net.rim.device.api.lbs.maps.MapConstants

public final class MapConstants
extends Object

Defines several constants that you can use with the Maps API that is provided in the net.rim.device.api.lbs.maps package.

Since:
BlackBerry API 6.0.0

Field Summary
static int HW_CLASS_HYBRID
          Indicates that the device hardware is hybrid (keyboard and touch).
static int MODE_FOCUS_ACTIVE
          Specifies that focus is currently on the map field, while in SHARED FOCUS mode.
static int MODE_FOLLOW
          When this mode is set, it forces the MapField that is using the My Location framework to pan and zoom with the user's location.
static int MODE_PAN
          Specifies the pan mode, where input from the user results in the map panning.
static int MODE_SELECTION
          Indicates a user can make a selection from the map.
static int MODE_SHARED_FOCUS
          Indicates that the map field can share focus with other fields.
static int MODE_ZOOM
          Specifies the zoom mode, where input from the user results in the zoom level changing.
static int TRACKPAD_SENSITIVITY_HIGHER
          Indicates the trackpad's higher sensitivity value.
static int TRACKPAD_SENSITIVITY_HIGHEST
          Indicates the trackpad's highest sensitivity value.
static int TRACKPAD_SENSITIVITY_LOWER
          Indicates the trackpad's lower sensitivity value.
static int TRACKPAD_SENSITIVITY_LOWEST
          Indicates the trackpad's lowest sensitivity value.
static int TRACKPAD_SENSITIVITY_MIDWAY
          Indicates the trackpad's midway sensitivity value.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

MODE_ZOOM

public static final int MODE_ZOOM
Specifies the zoom mode, where input from the user results in the zoom level changing.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

MODE_PAN

public static final int MODE_PAN
Specifies the pan mode, where input from the user results in the map panning.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

MODE_FOLLOW

public static final int MODE_FOLLOW
When this mode is set, it forces the MapField that is using the My Location framework to pan and zoom with the user's location.

Whenever the user's location moves, the map view will pan. If the accuracy of the location changes (from GPS to geolocation) the MapField may zoom in/out to compensate for the accuracy change.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

MODE_SELECTION

public static final int MODE_SELECTION
Indicates a user can make a selection from the map.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

MODE_SHARED_FOCUS

public static final int MODE_SHARED_FOCUS
Indicates that the map field can share focus with other fields. This mode should be used where the user's focus can come in and go out of the field, and move to other fields, such as buttons. This mode should be turned off if the field is the only field on the screen.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

MODE_FOCUS_ACTIVE

public static final int MODE_FOCUS_ACTIVE
Specifies that focus is currently on the map field, while in SHARED FOCUS mode.

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

HW_CLASS_HYBRID

public static final int HW_CLASS_HYBRID
Indicates that the device hardware is hybrid (keyboard and touch).

See Also:
Constant Field Values
Since:
BlackBerry API 6.0.0

TRACKPAD_SENSITIVITY_HIGHEST

public static final int TRACKPAD_SENSITIVITY_HIGHEST
Indicates the trackpad's highest sensitivity value.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

TRACKPAD_SENSITIVITY_HIGHER

public static final int TRACKPAD_SENSITIVITY_HIGHER
Indicates the trackpad's higher sensitivity value.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

TRACKPAD_SENSITIVITY_MIDWAY

public static final int TRACKPAD_SENSITIVITY_MIDWAY
Indicates the trackpad's midway sensitivity value.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

TRACKPAD_SENSITIVITY_LOWER

public static final int TRACKPAD_SENSITIVITY_LOWER
Indicates the trackpad's lower sensitivity value.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0

TRACKPAD_SENSITIVITY_LOWEST

public static final int TRACKPAD_SENSITIVITY_LOWEST
Indicates the trackpad's lowest sensitivity value.

See Also:
Constant Field Values
Since:
BlackBerry API 7.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal