JHotDraw 6.0b1

org.jhotdraw.contrib.dnd
Interface DNDInterface

All Known Implementing Classes:
StandardDrawingView, ZoomDrawingView

public interface DNDInterface

Interface for Components which wish to participate in drag and drop. A Component which wishes to participate in drag and drop should implement this interface. Once done the DragBDropTool will be able to transfer data to and from the Component. The Component will also be activated to receive drops from extra-JVM sources according to the conditions the Component specifies.


Method Summary
 void DNDDeinitialize()
           
 void DNDInitialize(java.awt.dnd.DragGestureListener dgl)
           
 java.awt.dnd.DragSourceListener getDragSourceListener()
          When the DNDTool starts a drag action, it queries the interface for the dragSourceListener of the source view.
 

Method Detail

DNDInitialize

void DNDInitialize(java.awt.dnd.DragGestureListener dgl)

DNDDeinitialize

void DNDDeinitialize()

getDragSourceListener

java.awt.dnd.DragSourceListener getDragSourceListener()
When the DNDTool starts a drag action, it queries the interface for the dragSourceListener of the source view. It uses this listener to create the dragGestureEvent.


JHotDraw 6.0b1