public final void setOnMouseDragged (EventHandler<? super MouseEvent> value)

taken from field

Defines a function to be called when a mouse button is pressed on this Scene and then dragged.