freemind.controller
Class NodeDropListener

java.lang.Object
  extended byfreemind.controller.NodeDropListener
All Implemented Interfaces:
java.awt.dnd.DropTargetListener, java.util.EventListener

public class NodeDropListener
extends java.lang.Object
implements java.awt.dnd.DropTargetListener


Constructor Summary
NodeDropListener(Controller controller)
           
 
Method Summary
 void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
          The method is called when the cursor carrying the dragged item enteres the area of the node.
 void dragExit(java.awt.dnd.DropTargetEvent e)
           
 void dragOver(java.awt.dnd.DropTargetDragEvent e)
           
 void dragScroll(java.awt.dnd.DropTargetDragEvent e)
           
 void drop(java.awt.dnd.DropTargetDropEvent dtde)
           
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeDropListener

public NodeDropListener(Controller controller)
Method Detail

drop

public void drop(java.awt.dnd.DropTargetDropEvent dtde)
Specified by:
drop in interface java.awt.dnd.DropTargetListener

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
The method is called when the cursor carrying the dragged item enteres the area of the node. The name "dragEnter" seems to be confusing to me. I think the difference between dragAcceptable and dropAcceptable is that in dragAcceptable, you tell if the type of the thing being dragged is OK, where in dropAcceptable, you tell if your really willing to accept the item.

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

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent e)
Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent e)
Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

dragScroll

public void dragScroll(java.awt.dnd.DropTargetDragEvent e)

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent e)
Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener