MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / removeSelectionInterval

Method removeSelectionInterval

unused/javax/swing/JTree.java:2609–2615  ·  view source on GitHub ↗

Removes the specified rows (inclusive) from the selection. If the specified indices are within the viewable set of rows, or bound the viewable set of rows, then the specified indices are constrained by the viewable set of rows. If the specified indices are not within the viewable set of rows, or do

(int index0, int index1)

Source from the content-addressed store, hash-verified

2607 * @param index1 the last row to remove from the selection
2608 */
2609 public void removeSelectionInterval(int index0, int index1) {
2610 TreePath[] paths = getPathBetweenRows(index0, index1);
2611
2612 if (paths != null && paths.length > 0) {
2613 this.getSelectionModel().removeSelectionPaths(paths);
2614 }
2615 }
2616
2617 /**
2618 * Removes the node identified by the specified path from the current

Callers 3

mouseReleasedActionMethod · 0.80
findHitsRunMethod · 0.80
mousePressedMethod · 0.80

Calls 3

getPathBetweenRowsMethod · 0.95
getSelectionModelMethod · 0.95
removeSelectionPathsMethod · 0.45

Tested by

no test coverage detected