equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
45 |
45 |
46 public interface DragSourceContextPeer { |
46 public interface DragSourceContextPeer { |
47 |
47 |
48 /** |
48 /** |
49 * start a drag |
49 * start a drag |
|
50 * @param dsc the DragSourceContext |
|
51 * @param c the cursor |
|
52 * @param dragImage the image to be dragged |
|
53 * @param imageOffset the offset |
50 */ |
54 */ |
51 |
55 |
52 void startDrag(DragSourceContext dsc, Cursor c, Image dragImage, Point imageOffset) throws InvalidDnDOperationException; |
56 void startDrag(DragSourceContext dsc, Cursor c, Image dragImage, Point imageOffset) throws InvalidDnDOperationException; |
53 |
57 |
54 /** |
58 /** |
55 * return the current drag cursor |
59 * return the current drag cursor |
|
60 * @return the current drag cursor |
56 */ |
61 */ |
57 |
62 |
58 Cursor getCursor(); |
63 Cursor getCursor(); |
59 |
64 |
60 /** |
65 /** |
61 * set the current drag cursor |
66 * set the current drag cursor |
|
67 * @param c the cursor |
62 */ |
68 */ |
63 |
69 |
64 void setCursor(Cursor c) throws InvalidDnDOperationException; |
70 void setCursor(Cursor c) throws InvalidDnDOperationException; |
65 |
71 |
66 /** |
72 /** |