java.awt.dnd
Class DragSource
java.lang.Object
|
+--java.awt.dnd.DragSource
All Implemented Interfaces:
Serializable
void | addDragSourceListener(java.awt.dnd.DragSourceListener l)
|
void | addDragSourceMotionListener(java.awt.dnd.DragSourceMotionListener l)
|
java.awt.dnd.DragGestureRecognizer | createDefaultDragGestureRecognizer(java.awt.Component c, int actions, java.awt.dnd.DragGestureListener dgl)
|
java.awt.dnd.DragGestureRecognizer | createDragGestureRecognizer(java.lang.Class recognizer, java.awt.Component c, int actions, java.awt.dnd.DragGestureListener dgl)
|
java.awt.dnd.DragSourceContext | createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer peer, java.awt.dnd.DragGestureEvent dge, java.awt.Cursor cursor, java.awt.Image image, java.awt.Point offset, java.awt.datatransfer.Transferable t, java.awt.dnd.DragSourceListener dsl)
|
static java.awt.dnd.DragSource | getDefaultDragSource()
|
java.awt.dnd.DragSourceListener[] | getDragSourceListeners()
|
java.awt.dnd.DragSourceMotionListener[] | getDragSourceMotionListeners()
|
java.awt.datatransfer.FlavorMap | getFlavorMap()
|
java.util.EventListener[] | getListeners(java.lang.Class type)
|
static boolean | isDragImageSupported()
|
void | removeDragSourceListener(java.awt.dnd.DragSourceListener l)
|
void | removeDragSourceMotionListener(java.awt.dnd.DragSourceMotionListener l)
|
void | startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.Image dragImage, java.awt.Point imageOffset, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl, java.awt.datatransfer.FlavorMap map)
|
void | startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl, java.awt.datatransfer.FlavorMap map)
|
void | startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.Image dragImage, java.awt.Point imageOffset, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl)
|
void | startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl)
|
DefaultCopyDrop
public static final Cursor DefaultCopyDrop
DefaultCopyNoDrop
public static final Cursor DefaultCopyNoDrop
DefaultLinkDrop
public static final Cursor DefaultLinkDrop
DefaultLinkNoDrop
public static final Cursor DefaultLinkNoDrop
DefaultMoveDrop
public static final Cursor DefaultMoveDrop
DefaultMoveNoDrop
public static final Cursor DefaultMoveNoDrop
DragSource
public DragSource()
Initializes the drag source.
Throws:
addDragSourceListener
public void addDragSourceListener(java.awt.dnd.DragSourceListener l)
Parameters:
addDragSourceMotionListener
public void addDragSourceMotionListener(java.awt.dnd.DragSourceMotionListener l)
Parameters:
createDefaultDragGestureRecognizer
public DragGestureRecognizer createDefaultDragGestureRecognizer(java.awt.Component c, int actions, java.awt.dnd.DragGestureListener dgl)
Parameters:
createDragGestureRecognizer
public DragGestureRecognizer createDragGestureRecognizer(java.lang.Class recognizer, java.awt.Component c, int actions, java.awt.dnd.DragGestureListener dgl)
Parameters:
createDragSourceContext
protected DragSourceContext createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer peer, java.awt.dnd.DragGestureEvent dge, java.awt.Cursor cursor, java.awt.Image image, java.awt.Point offset, java.awt.datatransfer.Transferable t, java.awt.dnd.DragSourceListener dsl)
Creates the DragSourceContext to handle this drag.
Parameters:
Throws:
getDefaultDragSource
public static DragSource getDefaultDragSource()
Throws:
getDragSourceListeners
public DragSourceListener[] getDragSourceListeners()
getDragSourceMotionListeners
public DragSourceMotionListener[] getDragSourceMotionListeners()
getFlavorMap
public FlavorMap getFlavorMap()
getListeners
public EventListener[] getListeners(java.lang.Class type)
Parameters:
isDragImageSupported
public static boolean isDragImageSupported()
removeDragSourceListener
public void removeDragSourceListener(java.awt.dnd.DragSourceListener l)
Parameters:
removeDragSourceMotionListener
public void removeDragSourceMotionListener(java.awt.dnd.DragSourceMotionListener l)
Parameters:
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.Image dragImage, java.awt.Point imageOffset, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl)
Start a drag, given the DragGestureEvent that initiated the drag.
Parameters:
Throws:
InvalidDnDOperationException
- If the Drag and Drop system is
unable to initiate a drag operation, or if the user attempts to start
a drag while an existing drag operation is still executing.
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.Image dragImage, java.awt.Point imageOffset, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl, java.awt.datatransfer.FlavorMap map)
Start a drag, given the DragGestureEvent that initiated the drag.
Parameters:
Throws:
InvalidDnDOperationException
- If the Drag and Drop system is
unable to initiate a drag operation, or if the user attempts to start
a drag while an existing drag operation is still executing.
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl)
Start a drag, given the DragGestureEvent that initiated the drag.
Parameters:
Throws:
InvalidDnDOperationException
- If the Drag and Drop system is
unable to initiate a drag operation, or if the user attempts to start
a drag while an existing drag operation is still executing.
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent trigger, java.awt.Cursor dragCursor, java.awt.datatransfer.Transferable trans, java.awt.dnd.DragSourceListener dsl, java.awt.datatransfer.FlavorMap map)
Start a drag, given the DragGestureEvent that initiated the drag.
Parameters:
Throws:
InvalidDnDOperationException
- If the Drag and Drop system is
unable to initiate a drag operation, or if the user attempts to start
a drag while an existing drag operation is still executing.