public class NetMapGraphicLoader extends MMLGraphicLoader implements NetMapListener, NetMapConstants
The easiest way to use this class is to create it with the NetMapConnector and add it to the LayerHandler or MapHandler. If the NetMapConnector is going to be created by another object for application design reasons, just create a NetMapConnectionHandler and add it to the MapHandler, and then add the NetMapConnector to the MapHandler, too. The NetMapConnectionHandler will create a NetMapGraphicLoader for the NetMapConnector. Make sure a GraphicLoaderConnector is also in the MapHandler, too, because it will create a GraphicLoaderPlugIn/PlugInLayer for the NetMapGraphicLoader.
Modifier and Type | Field and Description |
---|---|
protected boolean |
DEBUG |
protected java.lang.String |
localhostIP |
protected OMGraphicList |
omList
The list that gets sent to the GraphicLoaderPlugIn.
|
protected boolean |
toolTipUp |
DO_NOT_UPDATE_TIMER, name, NameProperty, proj, receiver, timer, TimerCmd, updateInterval
i18n, propertyPrefix
beanContextChildSupport, isolated
CLEAR, COMMAND_FIELD, DATABASE_TAG_FIELD, DEFAULT_PORT, DEFAULT_SERVER, ELEVATION_FIELD, ERROR_VALUE_DOUBLE, ERROR_VALUE_FLOAT, ERROR_VALUE_INT, HEIGHT_FIELD, ICON_FIELD, INDEX_FIELD, IP_FIELD, JMAP_VIEW_CMD, JOFFSET_FIELD, LABEL_FIELD, LAT_FIELD, LINE_DELETE, LINE_DELETE_STRING, LINK_NODE1_FIELD, LINK_NODE2_FIELD, LINK_OBJECT, LINK_OBJECT_STATUS, LON_FIELD, MENU_FIELD, NAME_FIELD, NODE_DELETE, NODE_DELETE_STRING, NODE_MOVE, NODE_MOVE_STRING, NODE_OBJECT, NODE_OBJECT_STATUS, POSX_FIELD, POSY_FIELD, REFRESH, SHAPE_FIELD, STATUS_FIELD, TIME_FIELD, UPDATE, WIDTH_FIELD
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
NetMapGraphicLoader()
Constructor for the NetMapGraphicLoader, you still have to set the
NetMapConnector.
|
NetMapGraphicLoader(NetMapConnector nmc)
Constructor for the NetMapGraphicLoader that sets the NetMapConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
catchEvent(NetMapEvent nme)
NetMapListener method, called by the NetMapConnector.
|
java.awt.Component |
getGUI()
Called by the GraphicLoaderPlugIn, the GUI is provided from the
NetMapConnector.
|
java.lang.String |
getName()
Needed to fill in a GUI with a receiver's name, to enable the user to
send a graphic to a specific object.
|
NetMapConnector |
getNetMapConnector()
Get the current NetMapConnector.
|
protected OMGraphicList |
getOMList()
Internal method used to create a single OMGraphicList from the NodeCache
and the LineCache.
|
void |
manageGraphics()
The inherited AbstractGraphicLoader method, that sends the current
OMGrapicList to the receiver.
|
boolean |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no
buttons down).
|
protected void |
processEventProperties(java.util.Properties eventProps)
Process a NetMapEvent Properties object, which means that a Properties
object, representing an event from the NetMap server, is evaluated and
used to modify the NodeCache and LineCache accordingly.
|
void |
setNetMapConnector(NetMapConnector nmc)
Set the NetMapConnector to listen to.
|
getMouseModeServiceList, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
actionPerformed, createTimer, getProjection, getProperties, getPropertyInfo, getReceiver, getTimer, getUpdateInterval, setName, setProjection, setProperties, setReceiver, setTimer, setUpdateInterval
getPropertyPrefix, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
protected OMGraphicList omList
protected boolean DEBUG
protected java.lang.String localhostIP
protected boolean toolTipUp
public NetMapGraphicLoader()
public NetMapGraphicLoader(NetMapConnector nmc)
nmc
- the NetMapConnector to listen to.public void setNetMapConnector(NetMapConnector nmc)
public NetMapConnector getNetMapConnector()
public void catchEvent(NetMapEvent nme)
catchEvent
in interface NetMapListener
protected void processEventProperties(java.util.Properties eventProps)
eventProps
- the properties from a NetMapEvent.protected OMGraphicList getOMList()
public java.awt.Component getGUI()
getGUI
in interface GraphicLoader
getGUI
in class AbstractGraphicLoader
public java.lang.String getName()
getName
in interface GraphicLoader
getName
in class AbstractGraphicLoader
public void manageGraphics()
manageGraphics
in class AbstractGraphicLoader
OMGraphicHandler.setList(OMGraphicList)
public boolean mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface MapMouseListener
mouseMoved
in class MMLGraphicLoader
e
- MouseEventCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details