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

Method setSelectionInterval

unused/javax/swing/JTree.java:2554–2558  ·  view source on GitHub ↗

Selects the rows in the specified interval (inclusive). If the specified indices are within the viewable set of rows, or bound the viewable set of rows, then the specified rows are constrained by the viewable set of rows. If the specified indices are not within the viewable set of rows, or do not bo

(int index0, int index1)

Source from the content-addressed store, hash-verified

2552 * @param index1 the last index in the range to select
2553 */
2554 public void setSelectionInterval(int index0, int index1) {
2555 TreePath[] paths = getPathBetweenRows(index0, index1);
2556
2557 this.getSelectionModel().setSelectionPaths(paths);
2558 }
2559
2560 /**
2561 * Adds the specified rows (inclusive) to the selection. If the

Callers 4

mousePressedActionMethod · 0.80
findHitsRunMethod · 0.80
ejsConfirmListMethod · 0.80
mousePressedMethod · 0.80

Calls 3

getPathBetweenRowsMethod · 0.95
getSelectionModelMethod · 0.95
setSelectionPathsMethod · 0.45

Tested by

no test coverage detected