com.bbn.openmap.graphicLoader
Class LOSGraphicLoader
java.lang.Object
com.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.graphicLoader.AbstractGraphicLoader
com.bbn.openmap.graphicLoader.MMLGraphicLoader
com.bbn.openmap.graphicLoader.LOSGraphicLoader
- All Implemented Interfaces:
- MapMouseListener, GraphicLoader, LightMapHandlerChild, PropertyConsumer, DrawingToolRequestor, java.awt.event.ActionListener, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextMembershipListener, java.util.EventListener
public class LOSGraphicLoader
- extends MMLGraphicLoader
- implements java.awt.event.ActionListener, DrawingToolRequestor
A managing object of GLPoints and PathGLPoints. Has a timer to move
them around and uses the DTED data to figure out which GLPoints can
see each other.
Methods inherited from class com.bbn.openmap.graphicLoader.AbstractGraphicLoader |
createTimer, getName, getProjection, getProperties, getPropertyInfo, getReceiver, getTimer, getUpdateInterval, setName, setProjection, setProperties, setReceiver, setTimer, setUpdateInterval |
Methods inherited from class com.bbn.openmap.MapHandlerChild |
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dfc
protected DTEDFrameCache dfc
los
protected LOSGenerator los
dt
protected OMDrawingTool dt
AddNodeCmd
public static final java.lang.String AddNodeCmd
- See Also:
- Constant Field Values
AddPathCmd
public static final java.lang.String AddPathCmd
- See Also:
- Constant Field Values
logger
public static java.util.logging.Logger logger
pointCount
public static int pointCount
LOSGraphicLoader
public LOSGraphicLoader()
LOSGraphicLoader
public LOSGraphicLoader(OMGraphicHandler receiver)
LOSGraphicLoader
public LOSGraphicLoader(DTEDFrameCache dfc,
OMGraphicHandler receiver)
manageGraphics
public void manageGraphics()
- Description copied from class:
AbstractGraphicLoader
- The method where the AbstractGraphicLoader is expected to tell
the receiver what the OMGraphics are. This gets called by
default by the actionPerformed() method, which is called by
default by the built-in timer when it is running.
- Specified by:
manageGraphics
in class AbstractGraphicLoader
- See Also:
OMGraphicHandler.setList(OMGraphicList)
isLOS
public boolean isLOS(GLPoint pt1,
GLPoint pt2,
OMGraphicList list)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Description copied from class:
AbstractGraphicLoader
- Method gets called by the timer if it's running. Will also get
called if any other component is using this class as an
ActionListener. By default, calls manageGraphics();
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class AbstractGraphicLoader
setDrawingTool
public void setDrawingTool(OMDrawingTool drawingTool)
getDrawingTool
public OMDrawingTool getDrawingTool()
setDTEDFrameCache
public void setDTEDFrameCache(DTEDFrameCache cache)
getDTEDFrameCache
public DTEDFrameCache getDTEDFrameCache()
getGUI
public java.awt.Component getGUI()
- Description copied from class:
AbstractGraphicLoader
- Provide a GUI for controlling the GraphicLoader. It's OK if
it's null.
- Specified by:
getGUI
in interface GraphicLoader
- Overrides:
getGUI
in class AbstractGraphicLoader
drawingComplete
public void drawingComplete(OMGraphic omg,
OMAction action)
- The method where a graphic, and an action to take on the
graphic, arrives.
- Specified by:
drawingComplete
in interface DrawingToolRequestor
findAndInit
public void findAndInit(java.lang.Object obj)
- MapHandlerChild methods modified to look for the DTEDFrameCache
and OMDrawingTool.
- Specified by:
findAndInit
in interface LightMapHandlerChild
- Overrides:
findAndInit
in class MapHandlerChild
findAndUndo
public void findAndUndo(java.lang.Object obj)
- MapHandlerChild methods modified to look for the DTEDFrameCache
and OMDrawingTool.
- Specified by:
findAndUndo
in interface LightMapHandlerChild
- Overrides:
findAndUndo
in class MapHandlerChild
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details