- * Find the leaf node with a particular ycount
- *
- * @param node
- * initial point on tree to search from
- * @param count
- * value to search for
- *
- * @return null or the node with ycound=count
- */
- public Object findLeaf(SequenceNode node, int count)
- {
- found = _findLeaf(node, count);
-
- return found;
- }
-
- /*
- * #see findLeaf(SequenceNode node, count)
- */
- public Object _findLeaf(SequenceNode node, int count)
- {
- if (node == null)
- {
- return null;
- }
-
- if (node.ycount == count)
- {
- found = node.element();
-
- return found;
- }
- else
- {
- _findLeaf((SequenceNode) node.left(), count);
- _findLeaf((SequenceNode) node.right(), count);
- }
-
- return found;
- }
-
- /**