MCPcopy Create free account
hub / github.com/rambaut/figtree / selectTaxa

Method selectTaxa

src/figtree/treeviewer/DefaultTreeViewer.java:287–297  ·  view source on GitHub ↗

Select taxa with a search string matching the currently displayed attribute @param searchType @param searchString @param caseSensitive

(TextSearchType searchType, String searchString, boolean caseSensitive)

Source from the content-addressed store, hash-verified

285 * @param caseSensitive
286 */
287 public void selectTaxa(TextSearchType searchType, String searchString, boolean caseSensitive) {
288 String attributeName = "!name";
289 LabelPainter lp = treePane.getTipLabelPainter();
290 if (lp != null && lp.isVisible() && lp.getDisplayAttribute() != null) {
291 attributeName = lp.getDisplayAttribute();
292 }
293
294 selectTaxa(attributeName, searchType, searchString, caseSensitive);
295
296 scrollToSelectedTips();
297 }
298
299 public void selectTaxa(String attributeName, TextSearchType searchType, String searchString, boolean caseSensitive) {
300 if (treePane.getTree() == null) {

Callers

nothing calls this directly

Calls 15

isVisibleMethod · 0.95
getDisplayAttributeMethod · 0.95
scrollToSelectedTipsMethod · 0.95
matchesItemMethod · 0.95
getTipLabelPainterMethod · 0.80
clearSelectionMethod · 0.80
getExternalNodesMethod · 0.80
addSelectedTipMethod · 0.80
getNameMethod · 0.65
getTreeMethod · 0.45
getTaxonMethod · 0.45
getAttributeNamesMethod · 0.45

Tested by

no test coverage detected