permalmberg
01/06/2017, 3:43 PMoverride val root = scrollpane {
stackpane {
group {
rectangle {
layoutX = 0.0
layoutY = 0.0
width = 5000.0
height = 5000.0
fill = Color.LIGHTGOLDENRODYELLOW
}.apply {
rect = this
}
setOnMouseDragReleased {
fire(EndComponentCreation(it.sceneX, it.sceneY))
}
setOnDragOver {
it.acceptTransferModes(TransferMode.COPY)
}
}.apply {
group = this
}
}
}
Items are added to the group