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

Method getTaxon

src/figtree/treeviewer/ReRootedTree.java:309–314  ·  view source on GitHub ↗

@param node the node whose associated taxon is being requested. @return the taxon object associated with the given node, or null if the node is an internal node.

(Node node)

Source from the content-addressed store, hash-verified

307 * if the node is an internal node.
308 */
309 public Taxon getTaxon(Node node) {
310 if (!(node instanceof ReRootedNode)) {
311 throw new IllegalArgumentException("Node, " + node.toString() + " is not an instance of SimpleRootedNode. It is an instance of "+node.getClass().getName());
312 }
313 return ((ReRootedNode)node).getTaxon();
314 }
315
316 /**
317 * @param node the node

Callers 15

getNodeTextMethod · 0.45
calculateStepsMethod · 0.45
selectTaxaMethod · 0.45
annotateSelectedTipsMethod · 0.45
getSelectedTaxaMethod · 0.45
getSelectedSubtreeMethod · 0.45
createNodesMethod · 0.45
annotateNodesFromTipsMethod · 0.45
annotateTipsFromNodesMethod · 0.45
paintMethod · 0.45

Calls 2

getNameMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected