public class DefaultMapMouseEventDispatcher extends Object implements MapMouseEventDispatcher
Constructor and Description |
---|
DefaultMapMouseEventDispatcher(MapPane mapPane)
Creates a new manager instance to work with the specified map pane.
|
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 |
mouseClicked(MouseEvent ev)
Receives a mouse clicked event and sends a derived MapMouseEvent to listeners.
|
void |
mouseDragged(MouseEvent ev)
Receives a mouse dragged event and sends a derived MapMouseEvent to listeners.
|
void |
mouseEntered(MouseEvent ev)
Receives a mouse entered event and sends a derived MapMouseEvent to listeners.
|
void |
mouseExited(MouseEvent ev)
Receives a mouse exited event and sends a derived MapMouseEvent to listeners.
|
void |
mouseMoved(MouseEvent ev)
Receives a mouse moved event and sends a derived MapMouseEvent to listeners.
|
void |
mousePressed(MouseEvent ev)
Receives a mouse pressed event and sends a derived MapMouseEvent to listeners.
|
void |
mouseReleased(MouseEvent ev)
Receives a mouse released event and sends a derived MapMouseEvent to listeners.
|
void |
mouseWheelMoved(MouseWheelEvent ev)
Receives a mouse wheel event and sends a derived MapMouseEvent to listeners.
|
void |
removeAllListeners()
Removes all listeners.
|
boolean |
removeMouseListener(MapMouseListener listener)
Removes the given listener.
|
public DefaultMapMouseEventDispatcher(MapPane mapPane)
mapPane
- the map panepublic boolean addMouseListener(MapMouseListener listener)
addMouseListener
in interface MapMouseEventDispatcher
listener
- the new listenerpublic boolean removeMouseListener(MapMouseListener listener)
removeMouseListener
in interface MapMouseEventDispatcher
listener
- the listener to removepublic void removeAllListeners()
removeAllListeners
in interface MapMouseEventDispatcher
public void mouseClicked(MouseEvent ev)
mouseClicked
in interface MouseListener
ev
- the input eventpublic void mousePressed(MouseEvent ev)
mousePressed
in interface MouseListener
ev
- the input eventpublic void mouseReleased(MouseEvent ev)
mouseReleased
in interface MouseListener
ev
- the input eventpublic void mouseEntered(MouseEvent ev)
mouseEntered
in interface MouseListener
ev
- the input eventpublic void mouseExited(MouseEvent ev)
mouseExited
in interface MouseListener
ev
- the input eventpublic void mouseDragged(MouseEvent ev)
mouseDragged
in interface MouseMotionListener
ev
- the input eventpublic void mouseMoved(MouseEvent ev)
mouseMoved
in interface MouseMotionListener
ev
- the input eventpublic void mouseWheelMoved(MouseWheelEvent ev)
mouseWheelMoved
in interface MouseWheelListener
ev
- the input eventpublic MapMouseEvent convertEvent(MouseEvent ev)
convertEvent
in interface MapMouseEventDispatcher
ev
- the input eventpublic MapMouseEvent convertEvent(MouseWheelEvent ev)
convertEvent
in interface MapMouseEventDispatcher
ev
- the input eventCopyright © 1996–2019 Geotools. All rights reserved.