Class DragAndDrop
java.lang.Object
ij.plugin.DragAndDrop
- All Implemented Interfaces:
PlugIn, DropTargetListener, Runnable, EventListener
This class opens images, roi's, luts and text files dragged and dropped on the "ImageJ" window.
It is based on the Draw_And_Drop plugin by Eric Kischell (keesh@ieee.org).
10 November 2006: Albert Cardona added Linux support and an
option to open all images in a dragged folder as a stack.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddrop(DropTargetDropEvent dtde) voidvoidOpen a file.voidrun()voidThis method is called when the plugin is loaded.
-
Constructor Details
-
DragAndDrop
public DragAndDrop()
-
-
Method Details
-
run
-
drop
- Specified by:
dropin interfaceDropTargetListener
-
dragEnter
- Specified by:
dragEnterin interfaceDropTargetListener
-
dragOver
- Specified by:
dragOverin interfaceDropTargetListener
-
dragExit
- Specified by:
dragExitin interfaceDropTargetListener
-
dropActionChanged
- Specified by:
dropActionChangedin interfaceDropTargetListener
-
run
-
openFile
Open a file. If it's a directory, ask to open all images as a sequence in a stack or individually.
-