org.ocd.dcf.dnd
Class DCDragSource
java.lang.Object
|
+--java.awt.dnd.DragSource
|
+--org.ocd.dcf.dnd.DCDragSource
- public class DCDragSource
- extends java.awt.dnd.DragSource
- Since:
- $Date: 2002/08/09 02:41:37 $
- Version:
- $Revision: 1.6 $
- Author:
- $Author: drichan $, ocd_dino - ocd_dino@users.sourceforge.net (initial author)
Fields inherited from class java.awt.dnd.DragSource |
DefaultCopyDrop, DefaultCopyNoDrop, DefaultLinkDrop, DefaultLinkNoDrop, DefaultMoveDrop, DefaultMoveNoDrop |
Method Summary |
java.awt.dnd.DragGestureRecognizer |
createDefaultDragGestureRecognizer(java.awt.Component pComp,
int pActions,
java.awt.dnd.DragGestureListener pListener)
Create a DragGestureRecognizer |
protected java.awt.dnd.DragSourceContext |
createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer pPeer,
java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.Image pImage,
java.awt.Point pOffset,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener)
Create the DragSource Context for this Drag Operation |
static java.awt.dnd.DragSource |
getDefaultDragSource()
Get the Default DragSource Object |
void |
startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.Image pImage,
java.awt.Point pPoint,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener)
Start the Drag Operation |
void |
startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.Image pImage,
java.awt.Point pPoint,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener,
java.awt.datatransfer.FlavorMap pFlavorMap)
Start the Drag Operation |
void |
startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener)
Start the Drag Operation |
void |
startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener,
java.awt.datatransfer.FlavorMap pFlavorMap)
Start the Drag Operation |
Methods inherited from class java.awt.dnd.DragSource |
createDragGestureRecognizer, getFlavorMap, isDragImageSupported |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DCDragSource
public DCDragSource()
getDefaultDragSource
public static java.awt.dnd.DragSource getDefaultDragSource()
- Get the Default DragSource Object
createDefaultDragGestureRecognizer
public java.awt.dnd.DragGestureRecognizer createDefaultDragGestureRecognizer(java.awt.Component pComp,
int pActions,
java.awt.dnd.DragGestureListener pListener)
- Create a DragGestureRecognizer
- Overrides:
createDefaultDragGestureRecognizer
in class java.awt.dnd.DragSource
- Parameters:
pComp
- Component to Listen onpActions
- DnD Actions to Listen forpListener
- DragGestureListener
createDragSourceContext
protected java.awt.dnd.DragSourceContext createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer pPeer,
java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.Image pImage,
java.awt.Point pOffset,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener)
- Create the DragSource Context for this Drag Operation
- Overrides:
createDragSourceContext
in class java.awt.dnd.DragSource
- Parameters:
pPeer
- pEvent
- pCursor
- pImage
- pOffset
- pTransferable
- pListener
-
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.Image pImage,
java.awt.Point pPoint,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener,
java.awt.datatransfer.FlavorMap pFlavorMap)
throws java.awt.dnd.InvalidDnDOperationException
- Start the Drag Operation
- Overrides:
startDrag
in class java.awt.dnd.DragSource
- Parameters:
pEvent
- pCursor
- pImage
- pPoint
- location to offset dragImage from the DragOrigin or null to use the Drag Component's locationpTransferable
- pFlavorMap
-
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener,
java.awt.datatransfer.FlavorMap pFlavorMap)
throws java.awt.dnd.InvalidDnDOperationException
- Start the Drag Operation
- Overrides:
startDrag
in class java.awt.dnd.DragSource
- Parameters:
pEvent
- DragGestureEvent that triggered this OperationpCursor
- Cursor to use during Drag operationpTransferable
- transferable object to use for data transferspListener
- DragSource ListenerpFlavorMap
- map of Data Flavors available in this transfer
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.Image pImage,
java.awt.Point pPoint,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener)
throws java.awt.dnd.InvalidDnDOperationException
- Start the Drag Operation
- Overrides:
startDrag
in class java.awt.dnd.DragSource
- Parameters:
pEvent
- DragGestureEvent that triggered this OperationpCursor
- Cursor to use during Drag operationpImage
- image to show during Drag OperationpPoint
- pTransferable
- transferable object to use for data transferspListener
- DragSource Listener
startDrag
public void startDrag(java.awt.dnd.DragGestureEvent pEvent,
java.awt.Cursor pCursor,
java.awt.datatransfer.Transferable pTransferable,
java.awt.dnd.DragSourceListener pListener)
throws java.awt.dnd.InvalidDnDOperationException
- Start the Drag Operation
- Overrides:
startDrag
in class java.awt.dnd.DragSource
- Parameters:
pEvent
- DragGestureEvent that triggered this OperationpCursor
- Cursor to use during Drag operationpTransferable
- transferable object to use for data transferspListener
- DragSource Listener