furthestNodeX = furthestNode.getXcoord();
rootX = tree.getRoot().getXcoord();
- if (furthestNodeX != rootX && !(x < rootX || x > furthestNodeX)) // don't
- // bother
- // if 0
- // distance tree or
- // clicked x lies outside
- // of tree
+ // don't bother if 0 distance tree or clicked x lies outside of tree
+ if (furthestNodeX != rootX && !(x > furthestNodeX))
{
-
float threshold = (x - rootX) / (furthestNodeX - rootX);
List<PhylogenyNode> foundNodes = getNodesAboveThreshold(threshold,
tree.getRoot());