|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The GestureResponsePolicy interface describes an object that receives interpreted events from a MapMouseInterpreter. The interpreter receives the MouseEvents and does the work of deciding what has happened concerning the OMGraphics on an OMGraphicHandlerLayer, and notifies the GestureResponsePolicy what it thinks happened. The GRP is free to respond as it needs.
MapMouseInterpreter
,
StandardMapMouseInterpreter
,
OMGraphicHandlerLayer
Method Summary | |
OMGraphicList |
copy(OMGraphicList omgl)
A notification that the OMGraphics on the list should be copied (duplicated and returned) and deselected. |
OMGraphicList |
cut(OMGraphicList omgl)
A notification that the OMGraphics on the list should be cut (deleted and returned) from the list and deselected. |
void |
deselect(OMGraphicList omgl)
A notification that the OMGraphics on the list should be considered to be deselected. |
java.lang.String |
getInfoText(OMGraphic omg)
A request for a string to be provided to use in the information line of the InformationDelegator, for instance. |
java.util.List |
getItemsForMapMenu(MapMouseEvent mme)
Return a JMenu with contents applicable to a popup menu for a location over the map. |
java.util.List |
getItemsForOMGraphicMenu(OMGraphic omg)
Return a java.util.List containing input for a JMenu with contents applicable to a popup menu for a location over an OMGraphic. |
OMGraphicList |
getSelected()
A query to get a list of all the OMGraphics that are current selected. |
java.lang.String |
getToolTipTextFor(OMGraphic omg)
A request for a string to be provided to use as a tool tip for an OMGraphic. |
void |
highlight(OMGraphic omg)
A notification that the OMGraphic should be highlighted in some way if the layer wants, to give the impression that something would happen to the OMGraphic if it were clicked upon or that a tooltip or information line information applies to this specific OMGraphic. |
boolean |
isHighlightable(OMGraphic omgr)
A query from the MapMouseInterpreter wondering if it should ask any questions about the given OMGraphic concerning mouse movement and mouse dragged gestures. |
boolean |
isSelectable(OMGraphic omgr)
A query from the MapMouseInterpreter wondering if the OMGraphic is selectable. |
boolean |
leftClick(MapMouseEvent mme)
A notification that the mouse has been clicked with the left mouse button on the map, and not on any of the OMGraphics. |
boolean |
mouseOver(MapMouseEvent mme)
A notification that the mouse cursor has been moved over the map, not over any of the OMGraphics on the GestureResponsePolicy. |
void |
paste(OMGraphicList omgl)
A notification that the OMGraphics on the list should be added to the list and selected. |
boolean |
receivesMapEvents()
A query from the MapMouseInterpreter wondering if the GestureResponsePolicy wants events pertaining to mouse movements over the map that are not over an OMGraphic. |
void |
select(OMGraphicList omgl)
A notification that the OMGraphics on the list should be considered to be selected. |
void |
unhighlight(OMGraphic omg)
A notification that the OMGraphic is no longer needed to be highlighted and that its appearance can go back to normal. |
Method Detail |
public boolean isHighlightable(OMGraphic omgr)
public boolean isSelectable(OMGraphic omgr)
public boolean receivesMapEvents()
public OMGraphicList getSelected()
public void select(OMGraphicList omgl)
public void deselect(OMGraphicList omgl)
public OMGraphicList cut(OMGraphicList omgl)
public OMGraphicList copy(OMGraphicList omgl)
public void paste(OMGraphicList omgl)
public void highlight(OMGraphic omg)
public void unhighlight(OMGraphic omg)
public java.lang.String getToolTipTextFor(OMGraphic omg)
public java.lang.String getInfoText(OMGraphic omg)
public java.util.List getItemsForMapMenu(MapMouseEvent mme)
mme
- a MapMouseEvent describing the location over where
the menu items should apply, in case different options
are appropriate for different places.
public java.util.List getItemsForOMGraphicMenu(OMGraphic omg)
public boolean mouseOver(MapMouseEvent mme)
mme
- MapMouseEvent describing the location of the mouse.
public boolean leftClick(MapMouseEvent mme)
mme
- MapMouseEvent describing the location of the mouse.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |