AccordionTreeDrawer
Class RangeInTree
java.lang.Object
|
+--AccordionTreeDrawer.RangeInTree
- All Implemented Interfaces:
- java.lang.Comparable
- public class RangeInTree
- extends java.lang.Object
- implements java.lang.Comparable
A class representing a range (ordered pair (min,max)) of TreeNode
indices in a Tree.
- Author:
- Tamara Munzner, Serdar Tasiran, Li Zhang, Yunhong Zhou
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
RangeInTree
public RangeInTree(int minimum,
int maximum,
AccordionTreeDrawer t)
getMin
public int getMin()
getMax
public int getMax()
getTree
public AccordionTreeDrawer getTree()
getSmallest
public int getSmallest(int small)
getLargest
public int getLargest(int large)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
intersects
public RangeInTree intersects(RangeInTree r)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object