org.jhotdraw.contrib.dnd
Class JHDDragSourceListener

java.lang.Object
  extended by org.jhotdraw.contrib.dnd.JHDDragSourceListener
All Implemented Interfaces:
java.awt.dnd.DragSourceListener, java.util.EventListener

public class JHDDragSourceListener
extends java.lang.Object
implements java.awt.dnd.DragSourceListener

Author:
Administrator

Nested Class Summary
static class JHDDragSourceListener.RemoveUndoActivity
           
 
Constructor Summary
JHDDragSourceListener(DrawingEditor newEditor, DrawingView newView)
          Creates a new instance of JHDDragSource
 
Method Summary
 void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
          This method is invoked to signify that the Drag and Drop operation is complete.
 void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
          Called as the hotspot enters a platform dependent drop site.
 void dragExit(java.awt.dnd.DragSourceEvent dse)
          Called as the hotspot exits a platform dependent drop site.
 void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
          Called as the hotspot moves over a platform dependent drop site.
 void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
          Called when the user has modified the drop gesture.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JHDDragSourceListener

public JHDDragSourceListener(DrawingEditor newEditor,
                             DrawingView newView)
Creates a new instance of JHDDragSource

Method Detail

dragDropEnd

public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
This method is invoked to signify that the Drag and Drop operation is complete. This is the last method called in the process.

Specified by:
dragDropEnd in interface java.awt.dnd.DragSourceListener

dragEnter

public void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
Called as the hotspot enters a platform dependent drop site.

Specified by:
dragEnter in interface java.awt.dnd.DragSourceListener

dragExit

public void dragExit(java.awt.dnd.DragSourceEvent dse)
Called as the hotspot exits a platform dependent drop site.

Specified by:
dragExit in interface java.awt.dnd.DragSourceListener

dragOver

public void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
Called as the hotspot moves over a platform dependent drop site.

Specified by:
dragOver in interface java.awt.dnd.DragSourceListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
Called when the user has modified the drop gesture.

Specified by:
dropActionChanged in interface java.awt.dnd.DragSourceListener