public interface MapMouseEventDispatcher extends MouseListener, MouseMotionListener, MouseWheelListener
MapMouseEvents
which add world location data. The resulting events are then dispatched to MapMouseListeners
by the methods overriden from the AWT listener interfaces.Modifier and Type | Method and Description |
---|---|
boolean |
addMouseListener(MapMouseListener listener)
Adds a listener for map pane mouse events.
|
MapMouseEvent |
convertEvent(MouseEvent ev)
Converts an incoming Java AWT mouse event to a MapMouseEvent.
|
MapMouseEvent |
convertEvent(MouseWheelEvent ev)
Converts an incoming Java AWT mouse wheel event to a MapMouseEvent.
|
void |
removeAllListeners()
Removes all listeners.
|
boolean |
removeMouseListener(MapMouseListener listener)
Removes the given listener.
|
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
mouseDragged, mouseMoved
mouseWheelMoved
boolean addMouseListener(MapMouseListener listener)
listener
- the new listenerIllegalArgumentException
- if the listener
is null
boolean removeMouseListener(MapMouseListener listener)
listener
- the listener to removeIllegalArgumentException
- if the listener
is null
void removeAllListeners()
MapMouseEvent convertEvent(MouseEvent ev)
ev
- the input eventMapMouseEvent convertEvent(MouseWheelEvent ev)
ev
- the input eventCopyright © 1996–2019 Geotools. All rights reserved.