JHotDraw 6.0b1

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


Nested Class Summary
static class JHDDragSourceListener.RemoveUndoActivity
           
 
Constructor Summary
JHDDragSourceListener(DrawingEditor newEditor, DrawingView newView)
          Creates a new instance of JHDDragSource
 
Method Summary
protected  Undoable createSourceUndoActivity(DrawingView drawingView)
          Factory method for undo activity
 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.
protected  DrawingEditor editor()
           
protected  Undoable getSourceUndoActivity()
           
protected  void setSourceUndoActivity(Undoable undoable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

editor

protected DrawingEditor editor()

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

createSourceUndoActivity

protected Undoable createSourceUndoActivity(DrawingView drawingView)
Factory method for undo activity


setSourceUndoActivity

protected void setSourceUndoActivity(Undoable undoable)

getSourceUndoActivity

protected Undoable getSourceUndoActivity()

JHotDraw 6.0b1