freemind.controller

Class NodeDropListener

Implemented Interfaces:
DropTargetListener

public class NodeDropListener
extends java.lang.Object
implements DropTargetListener

Constructor Summary

NodeDropListener(Controller controller)

Method Summary

void
dragEnter(DropTargetDragEvent dtde)
The method is called when the cursor carrying the dragged item enteres the area of the node.
void
dragExit(DropTargetEvent e)
void
dragOver(DropTargetDragEvent e)
void
dragScroll(DropTargetDragEvent e)
void
drop(DropTargetDropEvent dtde)
void
dropActionChanged(DropTargetDragEvent e)

Constructor Details

NodeDropListener

public NodeDropListener(Controller controller)

Method Details

dragEnter

public void dragEnter(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.

dragExit

public void dragExit(DropTargetEvent e)

dragOver

public void dragOver(DropTargetDragEvent e)

dragScroll

public void dragScroll(DropTargetDragEvent e)

drop

public void drop(DropTargetDropEvent dtde)

dropActionChanged

public void dropActionChanged(DropTargetDragEvent e)