|
||||||||||
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 com.bbn.openmap.layer.editor.EditorLayerMouseMode
public class EditorLayerMouseMode
The EditorLayerMouseMode is a mouse mode that is made active when the EditorTool needs events. It serves to ensure that the EditorLayer is the only layer receiving events from the MapBean when the EditorTool needs them, with the addition bonus of being invisible. The EditorTool should take care of indicating what it is doing with the MouseEvents, by creating certain OMGraphics, selecting certain types of objects, etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.bbn.openmap.event.AbstractMouseMode |
---|
AbstractMouseMode.MouseWheelTimerListener |
Field Summary | |
---|---|
java.lang.String |
modeID
Mouse Mode identifier, which is "EditorLayer". |
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 | |
---|---|
EditorLayerMouseMode(java.lang.String idToUse)
Construct a EditorLayerMouseMode. |
|
EditorLayerMouseMode(java.lang.String idToUse,
boolean consumeEvents)
Construct a EditorLayerMouseMode. |
Method Summary | |
---|---|
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 |
mouseClicked(java.awt.event.MouseEvent e)
Fires the MapMouseSupport method. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Fires the MapMouseSupport method. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Fires the MapMouseSupport method. |
void |
mouseExited(java.awt.event.MouseEvent e)
Fires the MapMouseSupport method. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Fires the MapMouseSupport method. |
void |
mousePressed(java.awt.event.MouseEvent e)
Fires the MapMouseSupport method. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Fires the MapMouseSupport method. |
Methods inherited from class com.bbn.openmap.event.CoordMouseMode |
---|
fireMouseLocation, getCoordFormatter, getCoordFormatterHandler, getInfoDelegator, getProperties, getPropertyInfo, 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 transient java.lang.String modeID
Constructor Detail |
---|
public EditorLayerMouseMode(java.lang.String idToUse)
idToUse
- a uniqueID to use just for a particular layer.public EditorLayerMouseMode(java.lang.String idToUse, boolean consumeEvents)
idToUse
- a uniqueID to use just for a particular layer.consumeEvents
- the consume mode setting.Method Detail |
---|
public void findAndInit(java.lang.Object someObj)
CoordMouseMode
findAndInit
in interface LightMapHandlerChild
findAndInit
in class CoordMouseMode
someObj
- an object being added to the BeanContext.public void findAndUndo(java.lang.Object someObj)
CoordMouseMode
findAndUndo
in interface LightMapHandlerChild
findAndUndo
in class CoordMouseMode
someObj
- an object being removed from the BeanContext.public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class AbstractMouseMode
e
- mouse event.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class AbstractMouseMode
e
- mouse event.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class AbstractMouseMode
e
- mouse event.public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class AbstractMouseMode
e
- mouse event.public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class AbstractMouseMode
e
- mouse event.public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class CoordMouseMode
e
- mouse event.public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class CoordMouseMode
e
- mouse event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |