|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.bbn.openmap.MapHandlerChild
|
+--com.bbn.openmap.OMComponent
|
+--com.bbn.openmap.event.AbstractMouseMode
|
+--com.bbn.openmap.event.CoordMouseMode
The CoordMouseMode is an abstract MouseMode extension to AbstractMouseMode that can be used for Modes that want to use the BeanContext to hook up with the InformationDelegator, and to send coordinate updates to be displayed in the infoline.
| Field Summary | |
InformationDelegator |
infoDelegator
The info delegator that will display the distance information |
| Fields inherited from class com.bbn.openmap.event.AbstractMouseMode |
cursor, df, guiIcon, ID, IDProperty, mouseSupport, prettyName, PrettyNameProperty, visible |
| Fields inherited from class com.bbn.openmap.OMComponent |
i18n, propertyPrefix |
| Fields inherited from class com.bbn.openmap.MapHandlerChild |
beanContextChildSupport |
| Fields inherited from interface com.bbn.openmap.PropertyConsumer |
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Constructor Summary | |
CoordMouseMode()
|
|
CoordMouseMode(java.lang.String modeID,
boolean shouldConsumeEvents)
|
|
| Method Summary | |
protected java.lang.String |
createCoordinateInformationLine(int x,
int y,
LatLonPoint llp)
Method to create the information string reflecting information at the LatLonPoint provided. |
void |
findAndInit(java.lang.Object someObj)
Called when a CoordMouseMode is added to a BeanContext, or when another object is added to the BeanContext after that. |
void |
findAndUndo(java.lang.Object someObj)
BeanContextMembershipListener method. |
void |
fireMouseLocation(java.awt.event.MouseEvent e)
Sends the mouse event location, x/y and lat/lon, to the InformationDelegator. |
InformationDelegator |
getInfoDelegator()
Return the information delegator. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Fires a mouse location to the InformationDelegator, and then calls the super class method which calls the MouseSupport method. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Fires a mouse location to the InformationDelegator, and then calls the super class method which calls the MouseSupport method. |
void |
setActive(boolean active)
If the MouseMode has been made inactive, clean out any input that might have been made to the info line. |
void |
setInfoDelegator(InformationDelegator id)
Set the information delegator. |
| Methods inherited from class com.bbn.openmap.event.AbstractMouseMode |
actAsProxyFor, actAsProxyFor, addMapMouseListener, getGUIIcon, getID, getModeCursor, getMouseSupport, getPrettyName, getProperties, getPropertyInfo, getProxyDistributionMask, isConsumeEvents, isProxyFor, isVisible, listenerPaint, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, releaseProxy, removeAllMapMouseListeners, removeMapMouseListener, setConsumeEvents, setGUIIcon, setID, setModeCursor, setMouseSupport, setPrettyName, setProperties, setProxyDistributionMask, setVisible |
| Methods inherited from class com.bbn.openmap.OMComponent |
getPropertyPrefix, setProperties, setPropertyPrefix |
| Methods inherited from class com.bbn.openmap.MapHandlerChild |
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public InformationDelegator infoDelegator
| Constructor Detail |
public CoordMouseMode()
public CoordMouseMode(java.lang.String modeID,
boolean shouldConsumeEvents)
modeID - the id for the mouse mode.shouldConsumeEvents - the mode setting, where the
mousemode should pass the events on to other listeners
or not, depending if one of the listeners used it or
not.| Method Detail |
public void setInfoDelegator(InformationDelegator id)
id - the information delegator that displays the distance
values.public InformationDelegator getInfoDelegator()
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class AbstractMouseModee - MouseEvent to be handledpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class AbstractMouseModee - mouse event.public void setActive(boolean active)
setActive in interface MapMouseModesetActive in class AbstractMouseModeactive - true if the mode has been made active, false if
it has been made inactive.public void fireMouseLocation(java.awt.event.MouseEvent e)
protected java.lang.String createCoordinateInformationLine(int x,
int y,
LatLonPoint llp)
public void findAndInit(java.lang.Object someObj)
findAndInit in interface LightMapHandlerChildfindAndInit in class MapHandlerChildsomeObj - an object being added to the BeanContext.public void findAndUndo(java.lang.Object someObj)
findAndUndo in interface LightMapHandlerChildfindAndUndo in class MapHandlerChildsomeObj - an object being removed from the BeanContext.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||