java.awt.event

Interface MouseMotionListener

public interface MouseMotionListener extends 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: 1.1

See Also: MouseMotionAdapter MouseEvent

UNKNOWN: updated to 1.4

Method Summary
voidmouseDragged(MouseEvent event)
This method is called when the mouse is moved over a component while a button has been pressed.
voidmouseMoved(MouseEvent event)
This method is called when the mouse is moved over a component while no button is pressed.

Method Detail

mouseDragged

public void mouseDragged(MouseEvent event)
This method is called when the mouse is moved over a component while a button has been pressed.

Parameters: event the MouseEvent indicating the motion

mouseMoved

public void mouseMoved(MouseEvent event)
This method is called when the mouse is moved over a component while no button is pressed.

Parameters: event the MouseEvent indicating the motion