|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nutiteq.BaseMapComponent
com.nutiteq.BasicMapComponent
com.nutiteq.MapComponent
public class MapComponent
An extension for BasicMapComponent initialized with basic default
values.
Default caching strategy for currently supported features:
| Field Summary |
|---|
| Fields inherited from class com.nutiteq.BasicMapComponent |
|---|
FINGER_CLICK_TOLERANCE, STYLUS_CLICK_TOLERANCE |
| Constructor Summary | |
|---|---|
MapComponent(java.lang.String licenseKey,
javax.microedition.midlet.MIDlet midlet,
int width,
int height,
WgsPoint middlePoint,
int zoom)
Constructor for map display object. |
|
MapComponent(java.lang.String licenseKey,
java.lang.String vendor,
java.lang.String appname,
int width,
int height,
WgsPoint middlePoint,
int zoom)
Constructor for map display object. |
|
| Method Summary | |
|---|---|
void |
enableDownloadCounter()
Enable network traffic counter using default implementation ( NutiteqDownloadCounter). |
void |
enableDownloadDisplay()
Enable network traffic overlay using default implementation for painting ( NutiteqDownloadDisplay). |
void |
showDefaultCursor()
Show default cursor (red cross) on screen. |
void |
showDefaultOnScreenZoomControls()
Show default zoom controls with +/- in upper left corner. |
void |
showZoomLevelIndicator(boolean showInicator)
Show map zoom scale after zoom action. |
void |
startMapping()
Initialize needed resources for mapping and start internal threads. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.nutiteq.maps.MapTilesRequestor |
|---|
getAllRequiredTiles, getRequiredTile, requiresMoreTiles, tileRetrieved, updateTile |
| Constructor Detail |
|---|
public MapComponent(java.lang.String licenseKey,
java.lang.String vendor,
java.lang.String appname,
int width,
int height,
WgsPoint middlePoint,
int zoom)
licenseKey - License key issued by Nutiteq LLCvendor - Vendor name used by library for license checkappname - Application name used by library for license checkwidth - map view widthheight - map view heightmiddlePoint - middle point at start (defined in WGS84)zoom - zoom level at start
public MapComponent(java.lang.String licenseKey,
javax.microedition.midlet.MIDlet midlet,
int width,
int height,
WgsPoint middlePoint,
int zoom)
licenseKey - License key issued by Nutiteq LLCmidlet - MIDlet class for the application. Used by library for reading
midlet name and vendor from jad for license verification.width - map view widthheight - map view heightmiddlePoint - middle point at start (defined in WGS84)zoom - zoom level at start| Method Detail |
|---|
public void startMapping()
startMapping in class BasicMapComponentpublic void showZoomLevelIndicator(boolean showInicator)
BasicMapComponent.setZoomLevelIndicator(com.nutiteq.ui.ZoomIndicator) with
DefaultZoomIndicator (when showIndicator is true) or
with null (no indicator is used).
showInicator - should the zoom indicator be shownpublic void enableDownloadCounter()
NutiteqDownloadCounter).
public void enableDownloadDisplay()
NutiteqDownloadDisplay).
public void showDefaultOnScreenZoomControls()
OnScreenZoomControls
with image '/images/m-l-controlls.png' from library resources.
public void showDefaultCursor()
Show default cursor (red cross) on screen.
Note: without setting cursor here or with
BasicMapComponent.setCursor(com.nutiteq.ui.Cursor) places/map can't
be clicked on handsets without touch screen.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||