class TreeNode[TLabel] extends AnyRef
The TreeNode
class is for a node in a tree.
- Alphabetic
- By Inheritance
- TreeNode
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TreeNode(nid: Int, lev: Int, label: TLabel, colr: Color = null, ord: Int = 0)(implicit arg0: ClassTag[TLabel])
- nid
the unique identifier for the node
- lev
the level of the node in the tree
- label
the node/incoming edge label
- colr
the color of the node
- ord
the birth order
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val child: ArrayBuffer[TreeNode[TLabel]]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- var colr: Color
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isAncestor(n: TreeNode[TLabel]): Boolean
Check if 'this' node is an ancestor of node 'n'.
Check if 'this' node is an ancestor of node 'n'.
- n
target node
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLeaf: Boolean
Determine whether 'this' node is a leaf.
- var label: TLabel
-
def
leftSibling: TreeNode[TLabel]
Return the left sibling of 'this' node.
- val lev: Int
- val loc: R2
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val nid: Int
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- var ord: Int
- var parent: TreeNode[TLabel]
-
def
rightSibling: TreeNode[TLabel]
Return the right sibling of 'this' node.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Convert a tree node to a string.
Convert a tree node to a string.
- Definition Classes
- TreeNode → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )