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

Method addSelectionInterval

unused/javax/swing/JTree.java:2581–2587  ·  view source on GitHub ↗

Adds the specified rows (inclusive) to 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 indices are not within the viewable set of rows, or do not bound the v

(int index0, int index1)

Source from the content-addressed store, hash-verified

2579 * @param index1 the last index in the range to add to the selection
2580 */
2581 public void addSelectionInterval(int index0, int index1) {
2582 TreePath[] paths = getPathBetweenRows(index0, index1);
2583
2584 if (paths != null && paths.length > 0) {
2585 this.getSelectionModel().addSelectionPaths(paths);
2586 }
2587 }
2588
2589 /**
2590 * Removes the specified rows (inclusive) from the selection. If

Callers 2

mousePressedActionMethod · 0.80

Calls 3

getPathBetweenRowsMethod · 0.95
getSelectionModelMethod · 0.95
addSelectionPathsMethod · 0.45

Tested by

no test coverage detected