Repository navigation
Expand file tree
/
Copy pathDragGestureListener.java
More file actions
64 lines (55 loc) · 1.5 KB
/
Copy pathDragGestureListener.java
File metadata and controls
64 lines (55 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Copyright 1998-2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.awt.dnd;
import java.util.EventListener;
/**
* The listener interface for receiving drag gesture events.
* This interface is intended for a drag gesture recognition
* implementation. See a specification for {@code DragGestureRecognizer}
* for details on how to register the listener interface.
* Upon recognition of a drag gesture the {@code
* DragGestureRecognizer} calls this interface's
* {@link #dragGestureRecognized dragGestureRecognized()}
* method and passes a {@code DragGestureEvent}.
*
* @see java.awt.dnd.DragGestureRecognizer
* @see java.awt.dnd.DragGestureEvent
* @see java.awt.dnd.DragSource
*/
public interface DragGestureListener extends EventListener {
/**
* This method is invoked by the {@code DragGestureRecognizer}
* when the {@code DragGestureRecognizer} detects a platform-dependent
* drag initiating gesture. To intiate the drag and drop operation,
* if approtiate, {@link DragGestureEvent#startDrag startDrag()} method on
* the {@code DragGestureEvent} has to be invoked.
* <P>
* @see java.awt.dnd.DragGestureRecognizer
* @see java.awt.dnd.DragGestureEvent
* @param dge the <code>DragGestureEvent</code> describing
* the gesture that has just occurred
*/
void dragGestureRecognized(DragGestureEvent dge);
}