|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.olduvai.accordiondrawer.SplitLine
net.sourceforge.olduvai.accordiondrawer.StaticSplitLine
public class StaticSplitLine
Field Summary | |
---|---|
private int |
splitLineIndex
Position of split line in array. |
Fields inherited from class net.sourceforge.olduvai.accordiondrawer.SplitLine |
---|
absoluteValue, color, computedFrame, cullingObject, getSplitLine, relativeValue, rowObject, splitLineFound, subTreeSize |
Constructor Summary | |
---|---|
StaticSplitLine(double value,
SplitLine parent,
SplitLine opAncestor,
boolean isVirtual)
Create a static split line, with the constructor of SplitLine . |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Natural order comparator that uses indices to determine which object (this or the input) precedes the other, or if they are the same. |
void |
computeSplitLineIndex(int rightAdd)
Recursively descend and assign split line index values to all split lines. |
StaticSplitLine[] |
getBounds(SplitAxis axis)
Get the bounds of this split line in the given axis, which are the parent and offparent. |
StaticSplitLine |
getOffParentBound()
Get the off-parent object, as a StaticSplitLine . |
static StaticSplitLine |
getOverlapStaticSplitCell(java.util.TreeSet searchTree,
StaticSplitLine input,
SplitAxis axis)
Returns a SplitLine whose absoluteValue is either equal to the input SplitLine's absoluteValue, or is the closest SplitLine less than the input SplitLine's absoluteValue. |
int |
getSplitIndex()
Get the split line index for this line. |
StaticSplitLine |
getStaticParent()
Get the parent object, as a StaticSplitLine . |
void |
setSplitIndex(int splitLineIndex)
Set the split line index for this line. |
java.lang.String |
toString()
debug output function, print the split line index for this line. |
Methods inherited from class net.sourceforge.olduvai.accordiondrawer.SplitLine |
---|
equals, getCachedValue, getCullingObject, getLeftChild, getOpBound, getOverlapSplitCell, getParent, getRightChild, getRowObject, getSubTreeSize, getValue, isLeftChild, isRoot, setCullingObject, setLeftChild, setOpBound, setParent, setRightChild, setRowObject, setSubTreeSize, toLongString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int splitLineIndex
Constructor Detail |
---|
public StaticSplitLine(double value, SplitLine parent, SplitLine opAncestor, boolean isVirtual)
SplitLine
.
isVirtual
- true for virtual split lines, created for rendering but not added to the split axis hierarchy.value
- initial SplitLine.absoluteValue
value for this split line. Will be used to place and determine relative value.parent
- SplitLine.parent
split lineopAncestor
- opposite split line, SplitLine.opBound
Method Detail |
---|
public int getSplitIndex()
splitLineIndex
public void setSplitIndex(int splitLineIndex)
splitLineIndex
- new value of splitLineIndex
.public void computeSplitLineIndex(int rightAdd)
rightAdd
- The amount to add to a right side child, initially 0 for root.public StaticSplitLine getStaticParent()
StaticSplitLine
.
SplitLine.getParent()
, casted.public StaticSplitLine getOffParentBound()
StaticSplitLine
.
SplitLine.getOpBound()
, casted.public java.lang.String toString()
toString
in class SplitLine
splitLineIndex
as a string.public int compareTo(java.lang.Object o)
SplitLine.splitLineFound
variable if SplitLine.getSplitLine
is set to true.
compareTo
in interface java.lang.Comparable
compareTo
in class SplitLine
o
- other object to test.
splitLineIndex
of each.public static StaticSplitLine getOverlapStaticSplitCell(java.util.TreeSet searchTree, StaticSplitLine input, SplitAxis axis)
searchTree
- Partitioned set of split lines from a rendering frame.input
- line that is being looked for in searchTreeaxis
- axis that line and search tree belong to
public StaticSplitLine[] getBounds(SplitAxis axis)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |