1. /*
  2. * @(#)DragSourceMotionListener.java 1.4 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.dnd;
  8. import java.util.EventListener;
  9. /**
  10. * A listener interface for receiving mouse motion events during a drag
  11. * operation.
  12. * <p>
  13. * The class that is interested in processing mouse motion events during
  14. * a drag operation either implements this interface or extends the abstract
  15. * <code>DragSourceAdapter</code> class (overriding only the methods of
  16. * interest).
  17. * <p>
  18. * Create a listener object using that class and then register it with
  19. * a <code>DragSource</code>. Whenever the mouse moves during a drag
  20. * operation initiated with this <code>DragSource</code>, that object's
  21. * <code>dragMouseMoved</code> method is invoked, and the
  22. * <code>DragSourceDragEvent</code> is passed to it.
  23. *
  24. * @see DragSourceDragEvent
  25. * @see DragSource
  26. * @see DragSourceListener
  27. * @see DragSourceAdapter
  28. *
  29. * @version 1.4, 12/19/03
  30. * @since 1.4
  31. */
  32. public interface DragSourceMotionListener extends EventListener {
  33. /**
  34. * Called whenever the mouse is moved during a drag operation.
  35. *
  36. * @param dsde the <code>DragSourceDragEvent</code>
  37. */
  38. void dragMouseMoved(DragSourceDragEvent dsde);
  39. }