the tree in which the selection has been made
a list of paths which have been added to the selection
a list of paths which have been removed from the selection
the first path in the list of currently selected paths (if any)
the first path in the list of previously selected paths (if any)
the first path in the list of currently selected paths (if any)
the first path in the list of previously selected paths (if any)
a list of paths which have been added to the selection
a list of paths which have been removed from the selection
the tree in which the selection has been made
the tree in which the selection has been made
The event denoting a change in selected paths of a de.sciss.swingtree.Tree.
The event provides information about which paths have been removed or added to the selection. For example, if a tree contains three elements, A, B, C, and initially A was selected, then an additional selection of B will produce an event which contains the path to B in
pathsAdded
, whereaspathsRemoved
is empty (no elements were deselected). If in the next step, the selection is replaced by C, an event will be produced whosepathsAdded
containsC
and whosepathsRemoved
contains A and B.If the client does not want to keep track of the total set of selected paths, it may retrieve them through the tree's
selection
object.For convenience, the event contains the optional first paths in the previous and current total selection set. In the example above, assuming an order of A, B, C, the first event will show A as both
newLeadSelectionPath
andoldLeadSelectionPath
. The second example event will show A inoldLeadSelectionPath
andC
innewLeadSelectionPath
.There is an additional extractor in the
TreePathSelected
companion object which yields the last element the new lead selection path.the tree in which the selection has been made
a list of paths which have been added to the selection
a list of paths which have been removed from the selection
the first path in the list of currently selected paths (if any)
the first path in the list of previously selected paths (if any)