SHOW Signed

net.rim.blackberry.api.maps
Class MapView

java.lang.Object
  |
  +--net.rim.blackberry.api.maps.MapView

public class MapView
extends Object

Represents the view seen in a mapping application (latitude and longitude for the center of the map, and the zoom and rotation values).

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

Since:
JDE 4.2.1

Field Summary
 Category: Signed static int MAX_ZOOM
          The maximum zoom value.
 
Constructor Summary
 Category: Signed MapView()
          Create a new MapView object.
 
Method Summary
 Category: Signed  int getLatitude()
          Retrieves the latitude of the center of the map.
 Category: Signed  int getLongitude()
          Retrieves the longitude of the center of the map.
 Category: Signed  int getRotation()
          Gets the rotation value for the map.
 Category: Signed  int getZoom()
          Gets the zoom value for the map.
 Category: Signed  void setLatitude(int latitude)
          Sets the latitude for the center of the map.
 Category: Signed  void setLongitude(int longitude)
          Sets the longitude for the center of the map.
 Category: Signed  void setRotation(int rotation)
          Set the rotation value for the map.
 Category: Signed  void setZoom(int zoom)
          Sets the zoom value for the map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail


MAX_ZOOM

public static final int MAX_ZOOM
The maximum zoom value.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Constructor Detail

MapView

public MapView()
Create a new MapView object.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Method Detail

getLatitude

public int getLatitude()
Retrieves the latitude of the center of the map.
Returns:
The latitude (100,000 times the value specified by WGS84)
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getLongitude

public int getLongitude()
Retrieves the longitude of the center of the map.
Returns:
The longitude (100,000 times the value specified by WGS84)
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getRotation

public int getRotation()
Gets the rotation value for the map.
Returns:
The rotation value in degrees rotated from north facing up.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getZoom

public int getZoom()
Gets the zoom value for the map.
Returns:
The zoom (0 - MAX_ZOOM)
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setLatitude

public void setLatitude(int latitude)
Sets the latitude for the center of the map.
Parameters:
latitude - The latitude (100,000 times the value specified by WGS84)
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setLongitude

public void setLongitude(int longitude)
Sets the longitude for the center of the map.
Parameters:
longitude - The longitude (100,000 times the value specified by WGS84)
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setRotation

public void setRotation(int rotation)
Set the rotation value for the map.
Parameters:
rotation - The rotation value in degrees. Degrees rotated from north facing up.
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setZoom

public void setZoom(int zoom)
Sets the zoom value for the map. Lower values provide more granularity. Values < 0 will set the value to 0. Values > MAX_ZOOM will set the value to MAX_ZOOM.
Parameters:
zoom - The zoom (0 - MAX_ZOOM)
Since:
JDE 4.2.1
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2007 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.