Package org.geotools.swing.event
Interface MapMouseEventDispatcher
- 
- All Superinterfaces:
- EventListener,- MouseListener,- MouseMotionListener,- MouseWheelListener
 - All Known Implementing Classes:
- DefaultMapMouseEventDispatcher
 
 public interface MapMouseEventDispatcher extends MouseListener, MouseMotionListener, MouseWheelListener Takes Java AWT mouse events received by a map pane and converts them toMapMouseEventswhich add world location data. The resulting events are then dispatched toMapMouseListenersby the methods overriden from the AWT listener interfaces.- Since:
- 8.0
- Author:
- Michael Bedward
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddMouseListener(MapMouseListener listener)Adds a listener for map pane mouse events.MapMouseEventconvertEvent(MouseEvent ev)Converts an incoming Java AWT mouse event to a MapMouseEvent.MapMouseEventconvertEvent(MouseWheelEvent ev)Converts an incoming Java AWT mouse wheel event to a MapMouseEvent.voidremoveAllListeners()Removes all listeners.booleanremoveMouseListener(MapMouseListener listener)Removes the given listener.- 
Methods inherited from interface MouseListenermouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 - 
Methods inherited from interface MouseMotionListenermouseDragged, mouseMoved
 - 
Methods inherited from interface MouseWheelListenermouseWheelMoved
 
- 
 
- 
- 
- 
Method Detail- 
addMouseListenerboolean addMouseListener(MapMouseListener listener) Adds a listener for map pane mouse events.- Parameters:
- listener- the new listener
- Returns:
- true if successful; false otherwise
- Throws:
- IllegalArgumentException- if the- listeneris- null
 
 - 
removeMouseListenerboolean removeMouseListener(MapMouseListener listener) Removes the given listener.- Parameters:
- listener- the listener to remove
- Returns:
- true if successful; false otherwise
- Throws:
- IllegalArgumentException- if the- listeneris- null
 
 - 
removeAllListenersvoid removeAllListeners() Removes all listeners.
 - 
convertEventMapMouseEvent convertEvent(MouseEvent ev) Converts an incoming Java AWT mouse event to a MapMouseEvent.- Parameters:
- ev- the input event
 
 - 
convertEventMapMouseEvent convertEvent(MouseWheelEvent ev) Converts an incoming Java AWT mouse wheel event to a MapMouseEvent.- Parameters:
- ev- the input event
 
 
- 
 
-