|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapMouseInterpreter
A MapMouseInterpreter is an extension of the MapMouseListener that has some understanding how MouseEvents on a Map relate to an OMGraphicList, and what kind of actions should be taken on the OMGraphics on a list. This interface describes specific actions being taken on OMGraphics over a map, and the implementing class can then take this information to make more abstract calls on its GestureResponsePolicy.
Method Summary | |
---|---|
java.awt.event.MouseEvent |
getCurrentMouseEvent()
A method for the GestureResponsePolicy to find out what the last MouseEvent was, in case it needs it to react to the GRP notifications. |
GestureResponsePolicy |
getGRP()
Get the GestureResponsePolicy to notify when MouseEvents have been interpreted. |
boolean |
isActive()
Check whether the MapMouseInterpreter is responding to events. |
boolean |
leftClick(java.awt.event.MouseEvent me)
Notification that the background was left-clicked upon. |
boolean |
leftClick(OMGraphic omg,
java.awt.event.MouseEvent me)
Notification that a particular OMGraphic was left-clicked upon. |
boolean |
leftClickOff(OMGraphic omg,
java.awt.event.MouseEvent me)
Notification that a particular OMGraphic, previously left-clicked upon, has been un-clicked. |
boolean |
mouseNotOver(OMGraphic omg)
Notification that the mouse has moved off of an OMGraphic it was previously over. |
boolean |
mouseOver(java.awt.event.MouseEvent me)
Notification that the mouse is being moved over the map at a certain location, and is not over any OMGraphics. |
boolean |
mouseOver(OMGraphic omg,
java.awt.event.MouseEvent me)
Notification that the mouse is over a particluar OMGraphic. |
boolean |
rightClick(java.awt.event.MouseEvent me)
Notification that the background was right-clicked upon. |
boolean |
rightClick(OMGraphic omg,
java.awt.event.MouseEvent me)
Notification that a particular OMGraphic was right-clicked upon. |
boolean |
rightClickOff(OMGraphic omg,
java.awt.event.MouseEvent me)
Notification that a particular OMGraphic, previously right-clicked upon, has been un-clicked. |
void |
setActive(boolean active)
Set whether the MapMouseInterpreter responds to mouse events. |
void |
setGRP(GestureResponsePolicy urp)
Set the GestureResponsePolicy to notify when MouseEvents have been interpreted. |
Methods inherited from interface com.bbn.openmap.event.MapMouseListener |
---|
getMouseModeServiceList, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased |
Method Detail |
---|
java.awt.event.MouseEvent getCurrentMouseEvent()
boolean leftClick(java.awt.event.MouseEvent me)
boolean leftClick(OMGraphic omg, java.awt.event.MouseEvent me)
boolean leftClickOff(OMGraphic omg, java.awt.event.MouseEvent me)
boolean rightClick(java.awt.event.MouseEvent me)
boolean rightClick(OMGraphic omg, java.awt.event.MouseEvent me)
boolean rightClickOff(OMGraphic omg, java.awt.event.MouseEvent me)
boolean mouseOver(java.awt.event.MouseEvent me)
boolean mouseOver(OMGraphic omg, java.awt.event.MouseEvent me)
boolean mouseNotOver(OMGraphic omg)
void setGRP(GestureResponsePolicy urp)
GestureResponsePolicy getGRP()
boolean isActive()
void setActive(boolean active)
active
- true if it should respond to mouse events.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |