java.awt.event
Interface MouseMotionListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
MouseInputListener
All Known Implementing Classes:
AWTEventMulticaster, BasicButtonListener, BasicComboPopup.InvocationMouseMotionHandler, BasicComboPopup.ListMouseMotionHandler, BasicDesktopIconUI.MouseInputHandler, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.GlassPaneDispatcher, BasicListUI.MouseInputHandler, BasicMenuItemUI.MouseInputHandler, BasicMenuUI.MouseInputHandler, BasicScrollBarUI.TrackListener, BasicSliderUI.TrackListener, BasicSplitPaneDivider.MouseHandler, BasicTableHeaderUI.MouseInputHandler, BasicTableUI.MouseInputHandler, BasicTextUI.BasicCaret, BasicToolBarUI.DockingListener, BasicTreeUI.MouseHandler, BasicTreeUI.MouseInputHandler, DefaultCaret, HTMLEditorKit.LinkController, MetalToolBarUI.MetalDockingListener, MouseDragGestureRecognizer, MouseInputAdapter, MouseMotionAdapter, ToolTipManager

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

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

Method Detail

mouseDragged

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

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