|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.event.AbstractMouseMode
com.bbn.openmap.event.CoordMouseMode
com.bbn.openmap.event.SelectMouseMode
public class SelectMouseMode
The SelectMouseMode delegates handling of mouse events to the
listeners. This MouseMode type is ideal for Layers that want to
receive MouseEvents. The simplest way to set this up is for the
Layer to implement the MapMouseListener interface, and indicate
that it wants to receive events when the mouse mode is the
SelectMouseMode. Here's a code snippet for a Layer that would do
this:
public MapMouseListener getMapMouseListener() {
return this;
}
public String[] getMouseModeServiceList() {
return new String[] { SelectMouseMode.modeID };
}
This class is functionally the same as the AbstractMouseMode, except that it actually calls the fire methods in the MapMouseSupport object to propagate the events.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.bbn.openmap.event.AbstractMouseMode |
---|
AbstractMouseMode.MouseWheelTimerListener |
Field Summary | |
---|---|
static java.lang.String |
modeID
Mouse Mode identifier, which is "Gestures". |
Fields inherited from class com.bbn.openmap.event.CoordMouseMode |
---|
coordFormatter, coordFormatterHandler, CoordFormatterProperty, infoDelegator |
Fields inherited from class com.bbn.openmap.OMComponent |
---|
i18n, propertyPrefix |
Fields inherited from class com.bbn.openmap.MapHandlerChild |
---|
beanContextChildSupport, isolated |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
SelectMouseMode()
Construct a SelectMouseMode. |
|
SelectMouseMode(boolean consumeEvents)
Construct a SelectMouseMode. |
|
SelectMouseMode(java.lang.String id,
boolean consumeEvents)
Construct a SelectMouseMode. |
Method Summary |
---|
Methods inherited from class com.bbn.openmap.event.CoordMouseMode |
---|
findAndInit, findAndUndo, fireMouseLocation, getCoordFormatter, getCoordFormatterHandler, getInfoDelegator, getProperties, getPropertyInfo, mouseDragged, mouseMoved, propertyChange, setActive, setCoordFormatter, setCoordFormatterHandler, setInfoDelegator, setProperties |
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, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final transient java.lang.String modeID
Constructor Detail |
---|
public SelectMouseMode()
public SelectMouseMode(boolean consumeEvents)
consumeEvents
- the consume mode setting.public SelectMouseMode(java.lang.String id, boolean consumeEvents)
id
- the id for the mouse mode.consumeEvents
- the consume mode setting.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |