ecologylab.collections
Class DLL

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.collections.DLL

public class DLL
extends Debug

Doubly linked list of GUI components. Maintains family tree.


Constructor Summary
DLL(java.lang.Object objectArg)
           
 
Method Summary
 void addAfter(DLL sibs)
          Add sibs after ourself.
 void addAtBeginning(DLL sibs)
          Prepend sibs to the start of this.
 void addToEnd(DLL sibs)
          Add sibs to the end of this.
 void clear()
          Remove the relations of this node, while it is being manipulated in the midst of mergeSort().
 void clearRelations()
          Remove the relations of this node, while it is being rebuilt, and its associations are meaningless.
 void clearStronger()
          Remove the relations of this node, while it is being deleted.
 java.lang.Object getNext()
           
 java.lang.Object getPrev()
           
 java.lang.Object getThis()
           
 DLL mergeSortDescending(MergeD mergeD, DLL zSibs)
           
 DLL next()
           
 DLL prev()
           
 void remove()
          Remove I and I from the dll of sibs.
 void setNext(DLL next)
          Not usually for public consumption.
 void setPrev(DLL prev)
           
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DLL

public DLL(java.lang.Object objectArg)
Method Detail

addAfter

public void addAfter(DLL sibs)
Add sibs after ourself.


addToEnd

public void addToEnd(DLL sibs)
Add sibs to the end of this.

Parameters:
sibs - DLL for object added to the end of this.

addAtBeginning

public void addAtBeginning(DLL sibs)
Prepend sibs to the start of this.

Parameters:
sibs - DLL for object added before this.

remove

public void remove()
Remove I and I from the dll of sibs.


clear

public void clear()
Remove the relations of this node, while it is being manipulated in the midst of mergeSort().


clearStronger

public void clearStronger()
Remove the relations of this node, while it is being deleted.


clearRelations

public void clearRelations()
Remove the relations of this node, while it is being rebuilt, and its associations are meaningless.


setNext

public void setNext(DLL next)
Not usually for public consumption. Only available for special sorts. With a getKey interface, the sort could be brought here, which will be better oo design.


setPrev

public void setPrev(DLL prev)

getThis

public java.lang.Object getThis()

getNext

public java.lang.Object getNext()

getPrev

public java.lang.Object getPrev()

prev

public DLL prev()

next

public DLL next()

mergeSortDescending

public DLL mergeSortDescending(MergeD mergeD,
                               DLL zSibs)