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

Method setHeight

src/figtree/treeviewer/ReRootedTree.java:173–185  ·  view source on GitHub ↗

@param node the node whose height is being set @param height the height

(Node node, double height)

Source from the content-addressed store, hash-verified

171 * @param height the height
172 */
173 public void setHeight(Node node, double height) {
174 lengthsKnown = false;
175 heightsKnown = true;
176
177 // If a single height of a single node is set then
178 // assume that all nodes have heights and by extension,
179 // branch lengths as well as these will be calculated
180 // from the heights
181 hasLengths = true;
182 hasHeights = true;
183
184 ((ReRootedNode)node).setHeight(height);
185 }
186
187 /**
188 * @param node the node whose branch length (to its parent) is being set

Callers 3

getSelectedSubtreeMethod · 0.45
calculateNodeHeightsMethod · 0.45
nodeLengthsToHeightsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected