1. /*
  2. * @(#)DragGestureListener.java 1.10 03/01/23
  3. *
  4. * Copyright 2003 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. * This interface is sourced from a <code>DragGestureRecognizer</code>
  11. * and is invoked
  12. * when an object of that (sub)class detects a drag initiating
  13. * gesture.
  14. * <p>
  15. * The implementor of this interface is responsible for starting the drag
  16. * as a result of receiving such notification.
  17. *
  18. * @see java.awt.dnd.DragGestureRecognizer
  19. * @see java.awt.dnd.DragGestureEvent
  20. * @see java.awt.dnd.DragSource
  21. */
  22. public interface DragGestureListener extends EventListener {
  23. /**
  24. * A <code>DragGestureRecognizer</code> has detected
  25. * a platform-dependent drag initiating gesture and
  26. * is notifying this listener
  27. * in order for it to initiate the action for the user.
  28. * <P>
  29. * @param dge the <code>DragGestureEvent</code> describing
  30. * the gesture that has just occurred
  31. */
  32. void dragGestureRecognized(DragGestureEvent dge);
  33. }