com.partnersoft.maps.app
Class MapApp

java.lang.Object
  extended by com.partnersoft.maps.app.MapApp

public class MapApp
extends java.lang.Object

This is the main Partner end-user application. It provides a map-based interface for viewing and editing. This combines the features of the Partner v3.x Map Viewer, Operations Manager, and Field Designer into a single modular application.

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.

Version:
$Id: MapApp.java 2474 2010-03-13 14:28:43Z paul $
Author:
Paul Reavis

Constructor Summary
MapApp(MapAppSkin skin)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapApp

public MapApp(MapAppSkin skin)
       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

currentMapApp

public static MapApp currentMapApp()

setCurrentMapApp

protected static void setCurrentMapApp(MapApp newCurrent)

dispose

public void dispose()
This throws away the MapAppRoot, which should break reference chains for most subobjects and improve garbage collection.


getConfiguration

public MapAppConfiguration getConfiguration()

getGps

public MapAppGps getGps()

getGui

public MapAppGui getGui()

getLogic

public MapAppLogic getLogic()

getProductBranding

public ProductBranding getProductBranding()

getSkin

public MapAppSkin getSkin()

getSpace

public MapSpace getSpace()

getWindow

public MainWindow getWindow()

getWorkbench

public WorkbenchApp getWorkbench()

isHeadless

public boolean isHeadless()

isMapsetLoaded

public boolean isMapsetLoaded(java.lang.String mapsetName)

setSkin

public void setSkin(MapAppSkin newSkin)

setWorkbench

public void setWorkbench(WorkbenchApp workbench)

isAlive

public boolean isAlive()
This method returns false after the MapApp has been shut down.