public abstract class MapClickListener extends MouseAdapter
| Constructor and Description |
|---|
MapClickListener(JXMapViewer viewer)
Creates a mouse listener for the jxmapviewer which returns the
GeoPosition of the the point where the mouse was clicked.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
mapClicked(GeoPosition location)
This method needs to be implemented in the extending class to handle the
map clicked event.
|
void |
mouseClicked(MouseEvent evt)
Gets called on mouseClicked events, calculates the GeoPosition and fires
the mapClicked method that the extending class needs to implement.
|
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMovedpublic MapClickListener(JXMapViewer viewer)
viewer - the jxmapviewerpublic void mouseClicked(MouseEvent evt)
mouseClicked in interface MouseListenermouseClicked in class MouseAdapterevt - the mouse eventpublic abstract void mapClicked(GeoPosition location)
location - The GeoPosition of the click eventCopyright © 2014. All Rights Reserved.