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.

@FunctionalInterface public static interface DragDropImportListener.DropHandler<T>
Interface to define a new drop handler.
Author:
Pete Bankhead, Melvin Gelbard
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    handleDrop(QuPathViewer viewer, List<T> list)
    Handle drop onto a viewer.
  • Method Details

    • handleDrop

      boolean handleDrop(QuPathViewer viewer, List<T> list)
      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 dropped
      list - the dropped objects
      Returns:
      true if the handler processed the drop event