getMoveDescriptor

private fun getMoveDescriptor(scheme: Scheme, moveDown: Boolean): Triple<Int, Int, RowsDnDSupport.RefinedDropSupport.Position>(source)

Returns the arguments to pass to TemplateJTreeModel.moveRow or TemplateJTreeModel.canMoveRow to describe moving scheme up (if moveDown is false) or down (if moveDown is true).

If an invalid move is returned, for example with negative indices, the move was not possible to begin with.

See also