|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.app.OpenMap
public class OpenMap
The OpenMap application framework. This class creates a PropertyHandler that searches the classpath, config directory and user's home directory for an openmap.properties file, and creates the application based on the contents of the properties files. It also creates an MapPanel and an OpenMapFrame to be used for the application and adds them to the MapHandler contained in the MapPanel. All other components are added to that MapHandler as well, and they use the MapHandler to locate, connect and communicate with each other.
Field Summary | |
---|---|
protected MapPanel |
mapPanel
|
Constructor Summary | |
---|---|
OpenMap()
Create a new OpenMap framework object - creates a MapPanel, OpenMapFrame, and brings up the layer palettes that are being told to be open at startup. |
|
OpenMap(PropertyHandler propertyHandler)
Create a new OpenMap framework object - creates a MapPanel, OpenMapFrame, and brings up the layer palettes that are being told to be open at startup. |
Method Summary | |
---|---|
protected void |
configureMapPanel(PropertyHandler propertyHandler)
|
static PropertyHandler |
configurePropertyHandler(java.lang.String propertiesFile)
Given a path to a properties file, try to configure a PropertyHandler with it. |
static OpenMap |
create()
Create and return an OpenMap object that uses a standard PropertyHandler to configure itself. |
static OpenMap |
create(java.lang.String propertiesFile)
Create and return an OpenMap object that uses a standard PropertyHandler to configure itself. |
protected static java.util.logging.Logger |
getLogger()
get the logger |
MapHandler |
getMapHandler()
Get the MapHandler used for the OpenMap object. |
MapPanel |
getMapPanel()
Get the MapPanel, the container for the OpenMap components. |
static void |
main(java.lang.String[] args)
The main OpenMap application. |
protected void |
setWindowListenerOnFrame(OpenMapFrame omf)
A method called internally to set the WindowListener behavior on an OpenMapFrame used for the OpenMap application. |
protected void |
showInFrame()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MapPanel mapPanel
Constructor Detail |
---|
public OpenMap()
public OpenMap(PropertyHandler propertyHandler)
Method Detail |
---|
protected void configureMapPanel(PropertyHandler propertyHandler)
protected void showInFrame()
protected void setWindowListenerOnFrame(OpenMapFrame omf)
public MapHandler getMapHandler()
public MapPanel getMapPanel()
public static OpenMap create()
getMapHandler()
public static OpenMap create(java.lang.String propertiesFile)
getMapHandler()
public static PropertyHandler configurePropertyHandler(java.lang.String propertiesFile)
public static void main(java.lang.String[] args)
protected static java.util.logging.Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |