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 8 package java.awt.dnd; 9 10 import java.util.EventListener; 11 12 /** 13 * A listener interface for receiving mouse motion events during a drag 14 * operation. 15 * <p> 16 * The class that is interested in processing mouse motion events during 17 * a drag operation either implements this interface or extends the abstract 18 * <code>DragSourceAdapter</code> class (overriding only the methods of 19 * interest). 20 * <p> 21 * Create a listener object using that class and then register it with 22 * a <code>DragSource</code>. Whenever the mouse moves during a drag 23 * operation initiated with this <code>DragSource</code>, that object's 24 * <code>dragMouseMoved</code> method is invoked, and the 25 * <code>DragSourceDragEvent</code> is passed to it. 26 * 27 * @see DragSourceDragEvent 28 * @see DragSource 29 * @see DragSourceListener 30 * @see DragSourceAdapter 31 * 32 * @version 1.4, 12/19/03 33 * @since 1.4 34 */ 35 36 public interface DragSourceMotionListener extends EventListener { 37 38 /** 39 * Called whenever the mouse is moved during a drag operation. 40 * 41 * @param dsde the <code>DragSourceDragEvent</code> 42 */ 43 void dragMouseMoved(DragSourceDragEvent dsde); 44 } 45