Package qupath.lib.gui.viewer
Interface DragDropImportListener.DropHandler<T>
- Type Parameters:
T
-
- Enclosing class:
DragDropImportListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to define a new drop handler.
- Author:
- Pete Bankhead, Melvin Gelbard
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handleDrop
(QuPathViewer viewer, List<T> list) Handle drop onto a viewer.
-
Method Details
-
handleDrop
Handle drop onto a viewer. This makes it possible to drop images (for example) onto a specific viewer to open them in that viewer, irrespective of whether the viewer is active currently.- Parameters:
viewer
- the active viewer, or the viewer only which the object were droppedlist
- the dropped objects- Returns:
- true if the handler processed the drop event
-