java.awt.dnd.peer
Interface DragSourceContextPeer


public interface DragSourceContextPeer

This interface is supplied by the underlying window system platform to expose the behaviors of the Drag and Drop system to an originator of the same

Since:
1.2

Method Summary
 Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor getCursor sample code for java.awt.dnd.peer.DragSourceContextPeer.getCursor() definition code for java.awt.dnd.peer.DragSourceContextPeer.getCursor() ()
          return the current drag cursor
 void setCursor sample code for java.awt.dnd.peer.DragSourceContextPeer.setCursor(java.awt.Cursor) definition code for java.awt.dnd.peer.DragSourceContextPeer.setCursor(java.awt.Cursor) (Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  c)
          set the current drag cursor
 void startDrag sample code for java.awt.dnd.peer.DragSourceContextPeer.startDrag(java.awt.dnd.DragSourceContext, java.awt.Cursor, java.awt.Image, java.awt.Point) definition code for java.awt.dnd.peer.DragSourceContextPeer.startDrag(java.awt.dnd.DragSourceContext, java.awt.Cursor, java.awt.Image, java.awt.Point) (DragSourceContext sample code for java.awt.dnd.DragSourceContext definition code for java.awt.dnd.DragSourceContext  dsc, Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  c, Image sample code for java.awt.Image definition code for java.awt.Image  dragImage, Point sample code for java.awt.Point definition code for java.awt.Point  imageOffset)
          start a drag
 void transferablesFlavorsChanged sample code for java.awt.dnd.peer.DragSourceContextPeer.transferablesFlavorsChanged() definition code for java.awt.dnd.peer.DragSourceContextPeer.transferablesFlavorsChanged() ()
          notify the peer that the Transferables DataFlavors have changed
 

Method Detail

startDrag sample code for java.awt.dnd.peer.DragSourceContextPeer.startDrag(java.awt.dnd.DragSourceContext, java.awt.Cursor, java.awt.Image, java.awt.Point) definition code for java.awt.dnd.peer.DragSourceContextPeer.startDrag(java.awt.dnd.DragSourceContext, java.awt.Cursor, java.awt.Image, java.awt.Point)

void startDrag(DragSourceContext sample code for java.awt.dnd.DragSourceContext definition code for java.awt.dnd.DragSourceContext  dsc,
               Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  c,
               Image sample code for java.awt.Image definition code for java.awt.Image  dragImage,
               Point sample code for java.awt.Point definition code for java.awt.Point  imageOffset)
               throws InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException 
start a drag

Throws:
InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException

getCursor sample code for java.awt.dnd.peer.DragSourceContextPeer.getCursor() definition code for java.awt.dnd.peer.DragSourceContextPeer.getCursor()

Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  getCursor()
return the current drag cursor


setCursor sample code for java.awt.dnd.peer.DragSourceContextPeer.setCursor(java.awt.Cursor) definition code for java.awt.dnd.peer.DragSourceContextPeer.setCursor(java.awt.Cursor)

void setCursor(Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  c)
               throws InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException 
set the current drag cursor

Throws:
InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException

transferablesFlavorsChanged sample code for java.awt.dnd.peer.DragSourceContextPeer.transferablesFlavorsChanged() definition code for java.awt.dnd.peer.DragSourceContextPeer.transferablesFlavorsChanged()

void transferablesFlavorsChanged()
notify the peer that the Transferables DataFlavors have changed