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
- Protected
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- var colr: Color
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated