|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.micello.mapapi.MicelloManager
public class MicelloManager
This class holds the Micello classes so the relevant classes have access to each other. The state of the map is held in the MapData object and the MapViewRegion object. Other important classes are also stored here. A copy of the instance of this class should be held across activities these object can be accessed.
| Constructor Summary | |
|---|---|
MicelloManager()
|
|
| Method Summary | |
|---|---|
void |
addMapViewListener(MapViewListener mapViewListener)
This method adds a MapViewListener. |
void |
blank()
This method nulls out the mapData |
void |
clearMapViewListeners()
This method clears all the MapViewListener. |
void |
close()
This method clears the resources used by the map code. |
static Context |
getApplicationContext()
This method returns the application context set in setApplciationContext. |
DataStore |
getDataStore()
This method retrieves an instance of the data store to request data objects. |
ErrorMonitor |
getErrorMonitor()
This method retrieves the error monitor. |
java.lang.String |
getLang()
This method returns the current langauge. |
MapData |
getMapData()
This method retrieves an instance of MapData. |
MapThemeManager |
getMapThemeManager()
This method retrieves an instance of the map theme manager. |
TileManager |
getTileManager()
This method is intended for internal use only. |
MapViewRegion |
getViewRegion()
This method retrieves an instance of the MapViewRegion. |
boolean |
redrawMap()
This method will redraw the map if the map view is active. |
void |
removeMapViewListener(MapViewListener mapViewListener)
This method removes a MapViewListener. |
void |
setApplicationContext(Context appContext)
This method sets the application context for the app. |
void |
setLang(java.lang.String lang)
This method sets the language. |
void |
setMapView(MicelloMapView mapView)
This method should be called by the map view when it becomes active, to set the current view, and when it becomes inactive, to set the view to null. |
void |
setRequestKey(java.lang.String key)
This method sets the request key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MicelloManager()
| Method Detail |
|---|
public void setApplicationContext(Context appContext)
appContext - The application Contextpublic static Context getApplicationContext()
public void setRequestKey(java.lang.String key)
public ErrorMonitor getErrorMonitor()
public MapData getMapData()
public MapViewRegion getViewRegion()
public TileManager getTileManager()
public MapThemeManager getMapThemeManager()
public DataStore getDataStore()
public java.lang.String getLang()
public void setLang(java.lang.String lang)
public void close()
public void setMapView(MicelloMapView mapView)
mapView - The active MicelloMapView object. If the mapView is made inactive
The mapView should be set to null.public void addMapViewListener(MapViewListener mapViewListener)
mapViewListener - public void removeMapViewListener(MapViewListener mapViewListener)
mapViewListener - public void clearMapViewListeners()
mapViewListener - public boolean redrawMap()
public void blank()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||