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

Constructor Summary
RangeInTree(int minimum, int maximum, AccordionTreeDrawer t)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 int getLargest(int large)
           
 int getMax()
           
 int getMin()
           
 int getSmallest(int small)
           
 AccordionTreeDrawer getTree()
           
 RangeInTree intersects(RangeInTree r)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeInTree

public RangeInTree(int minimum,
                   int maximum,
                   AccordionTreeDrawer t)
Method Detail

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