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
 
Constructor Summary
DCDragSource()
           
 
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
 

Constructor Detail

DCDragSource

public DCDragSource()
Method Detail

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 on
pActions - DnD Actions to Listen for
pListener - 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 location
pTransferable -  
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 Operation
pCursor - Cursor to use during Drag operation
pTransferable - transferable object to use for data transfers
pListener - DragSource Listener
pFlavorMap - 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 Operation
pCursor - Cursor to use during Drag operation
pImage - image to show during Drag Operation
pPoint -  
pTransferable - transferable object to use for data transfers
pListener - 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 Operation
pCursor - Cursor to use during Drag operation
pTransferable - transferable object to use for data transfers
pListener - DragSource Listener