|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.olduvai.accordiondrawer.SplitAxis.Debug
public class SplitAxis.Debug
Internal class for debugging the split axis class.
Constructor Summary | |
---|---|
SplitAxis.Debug()
|
Method Summary | |
---|---|
void |
checkAllBounds()
Verify that the split axis structure is valid. |
private void |
checkAllBoundsRecursive(SplitLine line)
Recursive part of checkAllBounds() . |
void |
checkSubTreeSizes()
Check the size of the subtrees, recursively. |
private void |
checkSubTreeSizesRecursive(SplitLine line)
Recursive part of checkSubTreeSizes() . |
SplitLine |
getPrevious(SplitLine line)
Get the previous line, with the SplitAxis.previous(SplitLine) function supplied by the parent class. |
SplitLine |
getSuccessor(SplitLine line)
Get the next line, with the SplitAxis.successor(SplitLine) function supplied by the parent class. |
void |
printAllAbsoluteValues()
Debugging function to print the absolute values for the entire tree from left to right. |
void |
setAllBounds(SplitLine line)
Depending on whether line is a left or right child node, set the opBound value of line to be the left or right bound. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitAxis.Debug()
Method Detail |
---|
public void printAllAbsoluteValues()
public void checkAllBounds()
checkAllBoundsRecursive(SplitLine)
.
private void checkAllBoundsRecursive(SplitLine line)
checkAllBounds()
.
A line's parent is one bound, the other bound is checked recursively.
Recursion continues on children of the current line.
line
- Current line to check bounds.public void checkSubTreeSizes()
checkSubTreeSizesRecursive(SplitLine)
then adds results of left and right to itself (1).
private void checkSubTreeSizesRecursive(SplitLine line)
checkSubTreeSizes()
.
line
- Current line to check.public void setAllBounds(SplitLine line)
line
- Line to set bounds of. Initially root, then this function is called recursively.public SplitLine getSuccessor(SplitLine line)
SplitAxis.successor(SplitLine)
function supplied by the parent class.
line
- Line to get next of.
public SplitLine getPrevious(SplitLine line)
SplitAxis.previous(SplitLine)
function supplied by the parent class.
line
- Line to get previous of.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |