|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
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 |
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 |
public java.awt.event.MouseEvent getCurrentMouseEvent()
public boolean leftClick(java.awt.event.MouseEvent me)
public boolean leftClick(OMGraphic omg, java.awt.event.MouseEvent me)
public boolean leftClickOff(OMGraphic omg, java.awt.event.MouseEvent me)
public boolean rightClick(java.awt.event.MouseEvent me)
public boolean rightClick(OMGraphic omg, java.awt.event.MouseEvent me)
public boolean rightClickOff(OMGraphic omg, java.awt.event.MouseEvent me)
public boolean mouseOver(java.awt.event.MouseEvent me)
public boolean mouseOver(OMGraphic omg, java.awt.event.MouseEvent me)
public boolean mouseNotOver(OMGraphic omg)
public void setGRP(GestureResponsePolicy urp)
public GestureResponsePolicy getGRP()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |