Packages

class Tree extends AnyRef

The Tree class provides a data structure for multi-way trees with colored nodes.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tree
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tree(root: TreeNode, depth: Double, name: String = "tree")

    root

    the root node of the tree

    depth

    the estimated average depth of the tree (used by animation)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(p: TreeNode, n: TreeNode): TreeNode

    Add a new node, link it in the tree and return it.

    Add a new node, link it in the tree and return it.

    p

    the parent node (null for root)

    n

    the new node to be added

  5. def add(p: TreeNode): TreeNode

    Create and add a new node, link it in the tree and return it.

    Create and add a new node, link it in the tree and return it.

    p

    the parent node (null for root)

  6. def aniStep(n: TreeNode, p: TreeNode, ord: Int, sibs: Int): Unit

    Prepare the animation step for adding node 'n' to the tree.

    Prepare the animation step for adding node 'n' to the tree.

    n

    the new node to add to the tree

    p

    the parent node

    ord

    the birth order of the node

    sibs

    the number of siblings

  7. def aniTree(): Unit

    Build up the animation step by traversing the tree.

  8. def apply(i: Int): TreeNode

    Return the 'i'th node.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def labelMap: Map[Pair, TLabel]

    Return a map of labels for nodes with incoming edges in the tree.

  18. val name: String
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. def printTree(): Unit

    Print the tree.

  23. val root: TreeNode
  24. def showAnimation(): Unit

    Animate the generation of the tree.

  25. def size: Int

    Return the number of nodes in the tree.

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped