KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > awt > dnd > peer > DragSourceContextPeer


1 /*
2  * @(#)DragSourceContextPeer.java 1.15 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.peer;
9
10 import java.awt.event.InputEvent JavaDoc;
11 import java.awt.Component JavaDoc;
12 import java.awt.Cursor JavaDoc;
13 import java.awt.Image JavaDoc;
14 import java.awt.Point JavaDoc;
15 import java.awt.Rectangle JavaDoc;
16
17 import java.awt.datatransfer.Transferable JavaDoc;
18
19 import java.awt.dnd.DragSource JavaDoc;
20 import java.awt.dnd.DragGestureEvent JavaDoc;
21 import java.awt.dnd.DragSourceContext JavaDoc;
22 import java.awt.dnd.DragSourceListener JavaDoc;
23 import java.awt.dnd.InvalidDnDOperationException JavaDoc;
24
25
26 /**
27  * <p>
28  * This interface is supplied by the underlying window system platform to
29  * expose the behaviors of the Drag and Drop system to an originator of
30  * the same
31  * </p>
32  *
33  * @version 1.15, 12/19/03
34  * @since 1.2
35  *
36  */

37
38 public interface DragSourceContextPeer {
39
40     /**
41      * start a drag
42      */

43
44     void startDrag(DragSourceContext JavaDoc dsc, Cursor JavaDoc c, Image JavaDoc dragImage, Point JavaDoc imageOffset) throws InvalidDnDOperationException JavaDoc;
45
46     /**
47      * return the current drag cursor
48      */

49
50     Cursor JavaDoc getCursor();
51
52     /**
53      * set the current drag cursor
54      */

55
56     void setCursor(Cursor JavaDoc c) throws InvalidDnDOperationException JavaDoc;
57
58     /**
59      * notify the peer that the Transferables DataFlavors have changed
60      */

61
62     void transferablesFlavorsChanged();
63 }
64
Popular Tags