|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.lbs.maps.ui.MapAction
public class MapAction
Defines if and how actions are performed on the parent map field.
Note: for the setCentre*
methods, if the new centre is
outside of the world boundaries for the latitude, then the coordinate is
clipped to the maximum value. If the longitude coordinate exceeds the
world boundaries, then the coordinate is wrapped to an equivalent point
within the world boundaries.
Field Summary | ||
---|---|---|
static int |
ACTION_CENTRE_CHANGE
Action event that indicates the centre coordinates changed. |
|
static int |
ACTION_FOCUSED_CHANGE
Action event that indicates the focused mappable item changed. |
|
static int |
ACTION_NAVIGATE_CHANGE
Action event that indicates the navigated mappable changed. |
|
static int |
ACTION_OPERATION_MODE_CHANGE
Action event that indicates the operational mode changed. |
|
static int |
ACTION_SELECTED_MAPPABLE_CHANGE
Action event that indicates the selected mappable changed. |
|
static int |
ACTION_ZOOM_CHANGE
Action event that indicates the zoom level changed. |
Method Summary | ||
---|---|---|
void |
disableOperationMode(int modeToDisable)
Disables an operation mode from the current composite mode, leaving the other active modes enabled. |
|
void |
enableOperationMode(int modeToEnable)
Enables an operation mode on top of the mode that is currently active. |
|
void |
navigateNext()
Navigates to the next mappable item. |
|
void |
navigatePrev()
Navigates to the previous mappable item. |
|
void |
setCentre(MapPoint newCentre)
Sets the centre of the map to the specified point. |
|
void |
setCentreAndZoom(MapPoint centre,
int zoom)
Sets the centre point and zoom level of the map, and then updates the map. |
|
void |
setCentreLatLon(double lat,
double lon)
Sets the centre of the map to the specified latitude and longitude coordinates. |
|
void |
setFocusMappable(Mappable target)
Sets the provided item as the currently focused mappable. |
|
void |
setSelectionPoint(MapPoint target)
Sets the current selection point. |
|
void |
setZoom(int zoom)
Sets the zoom level of the map field. |
|
void |
zoomIn()
Zooms in by one zoom level. |
|
void |
zoomOut()
Zooms out by one zoom level. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ACTION_ZOOM_CHANGE
public static final int ACTION_CENTRE_CHANGE
public static final int ACTION_FOCUSED_CHANGE
public static final int ACTION_OPERATION_MODE_CHANGE
public static final int ACTION_NAVIGATE_CHANGE
public static final int ACTION_SELECTED_MAPPABLE_CHANGE
Method Detail |
---|
public final void setZoom(int zoom)
zoom
- The new zoom level.public void zoomIn()
public void zoomOut()
public final void setCentreAndZoom(MapPoint centre, int zoom)
centre
- The new centre of the screen.zoom
- The new zoom level.public final void setCentre(MapPoint newCentre)
newCentre
- The new centre point.public final void setCentreLatLon(double lat, double lon)
lat
- The latitude of the location (in degrees).lon
- The longitude of the location (in degrees).public final void enableOperationMode(int modeToEnable)
MODE_SELECTION
and MODE_ZOOM
to be active concurrently.
Note: No validation is performed to ensure
that mutually exclusive modes (such as MODE_ZOOM
and MODE_PAN
) are not
enabled at the same time.
It is the responsibility of the caller to ensure mode consistency. When mutually exclusive modes are enabled, the behavior is undefined.
modeToEnable
- The operation mode to enable.public final void disableOperationMode(int modeToDisable)
modeToDisable
- The mode to be disabled.public final void setSelectionPoint(MapPoint target)
target
- The point that is selected.public final void setFocusMappable(Mappable target)
target
- The item to be focused on.public final void navigateNext()
public final void navigatePrev()
|
|||||||||
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.