AccordionTreeDrawer
Class ColorNode

java.lang.Object
  |
  +--AccordionTreeDrawer.ColorNode

public class ColorNode
extends java.lang.Object

A class representing a RangeList in a RangeTree.


Field Summary
private  RangeInTree Data
          this will hold the data
private  ColorNode lc
          left child of the current node
private  ColorNode rc
          right child of the current node
 
Constructor Summary
ColorNode()
          empty constructor
ColorNode(RangeInTree d, ColorNode leftChild, ColorNode rightChild)
          constructor with Data initiated
 
Method Summary
 boolean childless()
           
(package private)  RangeInTree getData()
           
(package private)  ColorNode getLc()
           
(package private)  ColorNode getRc()
           
(package private)  void setData(RangeInTree d)
           
(package private)  void setLeft(ColorNode O)
           
(package private)  void setRight(ColorNode O)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Data

private RangeInTree Data
this will hold the data


lc

private ColorNode lc
left child of the current node


rc

private ColorNode rc
right child of the current node

Constructor Detail

ColorNode

public ColorNode()
empty constructor


ColorNode

public ColorNode(RangeInTree d,
                 ColorNode leftChild,
                 ColorNode rightChild)
constructor with Data initiated

Method Detail

childless

public boolean childless()
Returns:
true if the node is a leaf, false otherwise

setData

void setData(RangeInTree d)

getData

RangeInTree getData()

getLc

ColorNode getLc()

getRc

ColorNode getRc()

setLeft

void setLeft(ColorNode O)

setRight

void setRight(ColorNode O)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object