public class MapApp
extends java.lang.Object
Note that as of 4.4.7 this object is really just a front to the entire app tree - it delegates everything to MapAppRoot. This allows us to break the references (via dispose()) and hopefully do a better job of garbage collection. All sub-objects refer to other parts of the map app through this object, so enforcing delegation should help. Keep this in mind when saving references to things inside the MapApp.
Copyright 2002-2009 Partner Software, Inc.
| Constructor and Description |
|---|
MapApp(MapAppSkin skin) |
| Modifier and Type | Method and Description |
|---|---|
static MapApp |
currentMapApp() |
void |
dispose()
This throws away the MapAppRoot, which should break reference chains for
most subobjects and improve garbage collection.
|
MapAppConfiguration |
getConfiguration() |
MapAppGps |
getGps() |
MapAppGui |
getGui() |
MapAppLogic |
getLogic() |
ProductBranding |
getProductBranding() |
MapAppSkin |
getSkin() |
MapSpace |
getSpace() |
MainWindow |
getWindow() |
WorkbenchApp |
getWorkbench() |
boolean |
isAlive()
This method returns false after the MapApp has been shut down.
|
boolean |
isHeadless() |
boolean |
isMapsetLoaded(java.lang.String mapsetName) |
protected static void |
setCurrentMapApp(MapApp newCurrent) |
void |
setSkin(MapAppSkin newSkin) |
void |
setWorkbench(WorkbenchApp workbench) |
public MapApp(MapAppSkin skin) throws java.io.IOException
java.io.IOExceptionpublic static MapApp currentMapApp()
protected static void setCurrentMapApp(MapApp newCurrent)
public void dispose()
public MapAppConfiguration getConfiguration()
public MapAppGps getGps()
public MapAppGui getGui()
public MapAppLogic getLogic()
public ProductBranding getProductBranding()
public MapAppSkin getSkin()
public MapSpace getSpace()
public MainWindow getWindow()
public WorkbenchApp getWorkbench()
public boolean isHeadless()
public boolean isMapsetLoaded(java.lang.String mapsetName)
public void setSkin(MapAppSkin newSkin)
public void setWorkbench(WorkbenchApp workbench)
public boolean isAlive()