|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GestureResponsePolicy
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<java.awt.Component> |
getItemsForMapMenu(MapMouseEvent mme)
Return a JMenu with contents applicable to a popup menu for a location over the map. |
java.util.List<java.awt.Component> |
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 |
---|
boolean isHighlightable(OMGraphic omgr)
boolean isSelectable(OMGraphic omgr)
boolean receivesMapEvents()
OMGraphicList getSelected()
void select(OMGraphicList omgl)
void deselect(OMGraphicList omgl)
OMGraphicList cut(OMGraphicList omgl)
OMGraphicList copy(OMGraphicList omgl)
void paste(OMGraphicList omgl)
void highlight(OMGraphic omg)
void unhighlight(OMGraphic omg)
java.lang.String getToolTipTextFor(OMGraphic omg)
java.lang.String getInfoText(OMGraphic omg)
java.util.List<java.awt.Component> 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.
java.util.List<java.awt.Component> getItemsForOMGraphicMenu(OMGraphic omg)
boolean mouseOver(MapMouseEvent mme)
mme
- MapMouseEvent describing the location of the mouse.
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 |