78 * Construct a <code>DropTargetDragEvent</code> given the |
78 * Construct a <code>DropTargetDragEvent</code> given the |
79 * <code>DropTargetContext</code> for this operation, |
79 * <code>DropTargetContext</code> for this operation, |
80 * the location of the "Drag" <code>Cursor</code>'s hotspot |
80 * the location of the "Drag" <code>Cursor</code>'s hotspot |
81 * in the <code>Component</code>'s coordinates, the |
81 * in the <code>Component</code>'s coordinates, the |
82 * user drop action, and the source drop actions. |
82 * user drop action, and the source drop actions. |
83 * <P> |
83 * |
84 * @param dtc The DropTargetContext for this operation |
84 * @param dtc The DropTargetContext for this operation |
85 * @param cursorLocn The location of the "Drag" Cursor's |
85 * @param cursorLocn The location of the "Drag" Cursor's |
86 * hotspot in Component coordinates |
86 * hotspot in Component coordinates |
87 * @param dropAction The user drop action |
87 * @param dropAction The user drop action |
88 * @param srcActions The source drop actions |
88 * @param srcActions The source drop actions |
116 /** |
116 /** |
117 * This method returns a <code>Point</code> |
117 * This method returns a <code>Point</code> |
118 * indicating the <code>Cursor</code>'s current |
118 * indicating the <code>Cursor</code>'s current |
119 * location within the <code>Component'</code>s |
119 * location within the <code>Component'</code>s |
120 * coordinates. |
120 * coordinates. |
121 * <P> |
121 * |
122 * @return the current cursor location in |
122 * @return the current cursor location in |
123 * <code>Component</code>'s coords. |
123 * <code>Component</code>'s coords. |
124 */ |
124 */ |
125 |
125 |
126 public Point getLocation() { |
126 public Point getLocation() { |
129 |
129 |
130 |
130 |
131 /** |
131 /** |
132 * This method returns the current <code>DataFlavor</code>s from the |
132 * This method returns the current <code>DataFlavor</code>s from the |
133 * <code>DropTargetContext</code>. |
133 * <code>DropTargetContext</code>. |
134 * <P> |
134 * |
135 * @return current DataFlavors from the DropTargetContext |
135 * @return current DataFlavors from the DropTargetContext |
136 */ |
136 */ |
137 |
137 |
138 public DataFlavor[] getCurrentDataFlavors() { |
138 public DataFlavor[] getCurrentDataFlavors() { |
139 return getDropTargetContext().getCurrentDataFlavors(); |
139 return getDropTargetContext().getCurrentDataFlavors(); |
140 } |
140 } |
141 |
141 |
142 /** |
142 /** |
143 * This method returns the current <code>DataFlavor</code>s |
143 * This method returns the current <code>DataFlavor</code>s |
144 * as a <code>java.util.List</code> |
144 * as a <code>java.util.List</code> |
145 * <P> |
145 * |
146 * @return a <code>java.util.List</code> of the Current <code>DataFlavor</code>s |
146 * @return a <code>java.util.List</code> of the Current <code>DataFlavor</code>s |
147 */ |
147 */ |
148 |
148 |
149 public List<DataFlavor> getCurrentDataFlavorsAsList() { |
149 public List<DataFlavor> getCurrentDataFlavorsAsList() { |
150 return getDropTargetContext().getCurrentDataFlavorsAsList(); |
150 return getDropTargetContext().getCurrentDataFlavorsAsList(); |
151 } |
151 } |
152 |
152 |
153 /** |
153 /** |
154 * This method returns a <code>boolean</code> indicating |
154 * This method returns a <code>boolean</code> indicating |
155 * if the specified <code>DataFlavor</code> is supported. |
155 * if the specified <code>DataFlavor</code> is supported. |
156 * <P> |
156 * |
157 * @param df the <code>DataFlavor</code> to test |
157 * @param df the <code>DataFlavor</code> to test |
158 * <P> |
158 * |
159 * @return if a particular DataFlavor is supported |
159 * @return if a particular DataFlavor is supported |
160 */ |
160 */ |
161 |
161 |
162 public boolean isDataFlavorSupported(DataFlavor df) { |
162 public boolean isDataFlavorSupported(DataFlavor df) { |
163 return getDropTargetContext().isDataFlavorSupported(df); |
163 return getDropTargetContext().isDataFlavorSupported(df); |