org.jhotdraw.draw
Class DefaultDrawingViewTransferHandler.DragHandler

java.lang.Object
  extended by org.jhotdraw.draw.DefaultDrawingViewTransferHandler.DragHandler
All Implemented Interfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.util.EventListener
Enclosing class:
DefaultDrawingViewTransferHandler

private static class DefaultDrawingViewTransferHandler.DragHandler
extends java.lang.Object
implements java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener

This is the default drag handler for drag and drop operations that use the TransferHandler.


Field Summary
private  java.awt.Point imageOffset
           
private  boolean scrolls
           
private  java.awt.datatransfer.Transferable transferable
           
 
Constructor Summary
DefaultDrawingViewTransferHandler.DragHandler(java.awt.datatransfer.Transferable t, java.awt.Point imageOffset)
           
 
Method Summary
 void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
          as the operation completes
 void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
          as the hotspot enters a platform dependent drop site
 void dragExit(java.awt.dnd.DragSourceEvent dsde)
          as the hotspot exits a platform dependent drop site
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
          a Drag gesture has been recognized
 void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
          as the hotspot moves over a platform dependent drop site
 void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scrolls

private boolean scrolls

transferable

private java.awt.datatransfer.Transferable transferable

imageOffset

private java.awt.Point imageOffset
Constructor Detail

DefaultDrawingViewTransferHandler.DragHandler

public DefaultDrawingViewTransferHandler.DragHandler(java.awt.datatransfer.Transferable t,
                                                     java.awt.Point imageOffset)
Method Detail

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
a Drag gesture has been recognized

Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener

dragEnter

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

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

dragOver

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

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

dragExit

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

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

dragDropEnd

public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
as the operation completes

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

dropActionChanged

public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
Specified by:
dropActionChanged in interface java.awt.dnd.DragSourceListener