APIdia Launch Partner
Top Description Methods
java.awt.dnd.peer

public Interface DragSourceContextPeer

Known Direct Implementers
sun.awt.dnd.SunDragSourceContextPeer
Imports
java.awt.Cursor, .Image, .Point, java.awt.dnd.DragSourceContext, .InvalidDnDOperationException

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

Modifier and TypeMethod and Description
public Cursor

Returns:

the current drag cursor
getCursor
()

return the current drag cursor

public void
setCursor(Cursor
the cursor
c
)

set the current drag cursor

public void
startDrag(DragSourceContext
the DragSourceContext
dsc
,
Cursor
the cursor
c
,
Image
the image to be dragged
dragImage
,
Point
the offset
imageOffset
)

start a drag

public void
transferablesFlavorsChanged()

notify the peer that the Transferables DataFlavors have changed

Method Detail

getCursorback to summary
public Cursor getCursor()

return the current drag cursor

Returns:Cursor

the current drag cursor

setCursorback to summary
public void setCursor(Cursor c) throws InvalidDnDOperationException

set the current drag cursor

Parameters
c:Cursor

the cursor

startDragback to summary
public void startDrag(DragSourceContext dsc, Cursor c, Image dragImage, Point imageOffset) throws InvalidDnDOperationException

start a drag

Parameters
dsc:DragSourceContext

the DragSourceContext

c:Cursor

the cursor

dragImage:Image

the image to be dragged

imageOffset:Point

the offset

transferablesFlavorsChangedback to summary
public void transferablesFlavorsChanged()

notify the peer that the Transferables DataFlavors have changed