|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.olduvai.accordiondrawer.DrawableRange
net.sourceforge.olduvai.treejuxtaposer.drawer.RangeInTree
public class RangeInTree
A class representing a range (ordered pair (min,max)) of TreeNode indices in a Tree. Extension of RangeInTree, with a drawer for identification.
Field Summary | |
---|---|
protected AccordionTreeDrawer |
atd
Drawer for this range. |
static boolean |
doAdj
if true, adjacent ranges are equal, and will be combined. |
Fields inherited from class net.sourceforge.olduvai.accordiondrawer.DrawableRange |
---|
drawer, group, max, min |
Constructor Summary | |
---|---|
RangeInTree(int minimum,
int maximum,
AccordionTreeDrawer t)
Basic constructor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Special comparator: overlaps are equal, even adjacent non-overlaps if doAdj is true. |
boolean |
equals(java.lang.Object o)
Equality function that uses the overlap comparator. |
double |
getSize(SplitAxis splitAxis,
int frameNum)
Get the world-space size for this range. |
RangeInTree |
getSplitLineRange(int xy,
boolean horiz)
Convert the RangeInTree of leaf indices into a RangeInTree of split line indices. |
AccordionTreeDrawer |
getTree()
Get the drawer for this range |
java.lang.String |
toString()
Debug string for this range. |
Methods inherited from class net.sourceforge.olduvai.accordiondrawer.DrawableRange |
---|
getAD, getGroup, getMax, getMin, rangeLength, setGroup, setMax, setMin |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AccordionTreeDrawer atd
public static boolean doAdj
Constructor Detail |
---|
public RangeInTree(int minimum, int maximum, AccordionTreeDrawer t)
minimum
- minimum index of the rangemaximum
- maximum index of the ranget
- drawer for this range.Method Detail |
---|
public AccordionTreeDrawer getTree()
atd
public java.lang.String toString()
toString
in class java.lang.Object
public double getSize(SplitAxis splitAxis, int frameNum)
splitAxis
- Axis used to get size of the rangeframeNum
- current frame
public int compareTo(java.lang.Object o)
doAdj
is true.
Will save equal values if RangeList.returnObject
is true.
public boolean equals(java.lang.Object o)
equals
in class DrawableRange
o
- other rangeInTree to test for overlap.
public RangeInTree getSplitLineRange(int xy, boolean horiz)
xy
- 0 for X, 1 for Yhoriz
- redundant?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |