amanda.hinchman-dominguez
12/18/2017, 10:06 PMamanda.hinchman-dominguez
12/18/2017, 10:21 PMamanda.hinchman-dominguez
12/18/2017, 10:23 PMr4zzz4k
12/18/2017, 11:18 PMamanda.hinchman-dominguez
12/19/2017, 2:13 AMamanda.hinchman-dominguez
12/19/2017, 2:14 AMnimakro
12/19/2017, 6:17 AMsetOnDragDetected
* setOnDragOver
* setOnDragEntered
* setOnDragExited
* setOnDragDropped
To share data from the drag source node and the drag target node you have to use a Dragboard
And to show an Image of the graphic you want to drag you can simply do
// Creates a Dragboard
val dragBoard = graphic.startDragAndDrop(*TransferMode.MOVE)
// Clibpboard which contains the data you want to share
val content = ClipboardContent()
content.putUrl(....)
// Create a snapshot of the graphic with will be displayed while dragging
val dragView = graphic?.snapshot(null, null)
dragBoard.dragView = dragView
// Add the content to the Dragboard
dragBoard.setContent(content)
nimakro
12/19/2017, 6:20 AMamanda.hinchman-dominguez
12/19/2017, 1:21 PMamanda.hinchman-dominguez
12/19/2017, 1:23 PMcarlw
12/19/2017, 1:37 PMamanda.hinchman-dominguez
12/19/2017, 1:40 PMamanda.hinchman-dominguez
12/19/2017, 1:40 PMcarlw
12/19/2017, 1:41 PMamanda.hinchman-dominguez
12/19/2017, 1:50 PMamanda.hinchman-dominguez
12/19/2017, 1:51 PMamanda.hinchman-dominguez
12/19/2017, 1:51 PMcarlw
12/19/2017, 2:47 PMcarlw
12/19/2017, 2:48 PMcarlw
12/19/2017, 2:50 PMcarlw
12/19/2017, 2:56 PMedvin
12/19/2017, 2:57 PMedvin
12/19/2017, 2:57 PMcarlw
12/19/2017, 2:58 PMron
12/19/2017, 2:58 PMcarlw
12/19/2017, 2:58 PMron
12/19/2017, 2:59 PMamanda.hinchman-dominguez
12/19/2017, 2:59 PMedvin
12/19/2017, 2:59 PMamanda.hinchman-dominguez
12/19/2017, 3:00 PM