Interface DropTarget.OnMotion

Enclosing class:
DropTarget
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 DropTarget.OnMotion
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    onMotion(double x, double y)
    Emitted while the pointer is moving over the drop target.
  • Method Details

    • onMotion

      int onMotion(double x, double y)
      Emitted while the pointer is moving over the drop target.
      Parameters:
      x - the x coordinate of the current pointer position
      y - the y coordinate of the current pointer position
      Returns:
      Preferred action for this drag operation or 0 if dropping is not supported at the current @x,@y location.