- java.lang.Object
-
- ij.plugin.DragAndDrop
-
- All Implemented Interfaces:
PlugIn,DropTargetListener,Runnable,EventListener
public class DragAndDrop extends Object implements PlugIn, DropTargetListener, Runnable
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 Constructor Description DragAndDrop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddragEnter(DropTargetDragEvent e)voiddragExit(DropTargetEvent e)voiddragOver(DropTargetDragEvent e)voiddrop(DropTargetDropEvent dtde)voiddropActionChanged(DropTargetDragEvent e)voidopenFile(File f)Open a file.voidrun()voidrun(String arg)This method is called when the plugin is loaded.
-
-
-
Method Detail
-
run
public void run(String arg)
Description copied from interface:PlugInThis method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
-
drop
public void drop(DropTargetDropEvent dtde)
- Specified by:
dropin interfaceDropTargetListener
-
dragEnter
public void dragEnter(DropTargetDragEvent e)
- Specified by:
dragEnterin interfaceDropTargetListener
-
dragOver
public void dragOver(DropTargetDragEvent e)
- Specified by:
dragOverin interfaceDropTargetListener
-
dragExit
public void dragExit(DropTargetEvent e)
- Specified by:
dragExitin interfaceDropTargetListener
-
dropActionChanged
public void dropActionChanged(DropTargetDragEvent e)
- Specified by:
dropActionChangedin interfaceDropTargetListener
-
openFile
public void openFile(File f)
Open a file. If it's a directory, ask to open all images as a sequence in a stack or individually.
-
-