Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.event

Interface MouseMotionListener

java.lang.Object
|
+--java.util.EventListener
   |
   +--java.awt.event.MouseMotionListener

All Implemented Interfaces:

EventListener


public interface MouseMotionListener

implements EventListener

This interface is for classes that wish to be notified of mouse movements. This includes moves and drags, but not crossing component boundaries. To track other mouse events, use MouseListener or MouseWheelListener. To watch a subset of these events, use a MouseMotionAdapter.

Since:Author:See Also:

Method Summary

voidmouseDragged(java.awt.event.MouseEvent event)

This method is called when the mouse is moved over a component while a button has been pressed.
voidmouseMoved(java.awt.event.MouseEvent event)

This method is called when the mouse is moved over a component while no button is pressed.

Method Details

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent event)

This method is called when the mouse is moved over a component while a button has been pressed.

Parameters:


mouseMoved

public void mouseMoved(java.awt.event.MouseEvent event)

This method is called when the mouse is moved over a component while no button is pressed.

Parameters: