class Stripifier.Node
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
attrib |
(package private) static int |
BLACK |
(package private) int |
depth |
(package private) Stripifier.Face |
face |
(package private) static int |
GREY |
(package private) Stripifier.Node |
left |
(package private) int |
numChildren |
(package private) Stripifier.Node |
parent |
(package private) Stripifier.Node |
right |
(package private) static int |
WHITE |
| Constructor and Description |
|---|
Stripifier.Node(Stripifier.Face f) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
insert(Stripifier.Node p)
inserts this node below the parent supplied.
|
(package private) boolean |
isRoot()
a node is the root if it doesn't have a parent
|
(package private) boolean |
notAccessed()
returns true if the attrib is WHITE
|
(package private) void |
print()
prints the information in this Node
|
(package private) void |
processed()
sets the color to BLACK
|
(package private) void |
remove()
remove this node from its parent
|
(package private) void |
setRoot()
sets the depth to 0 and the attrib to GREY
|
Stripifier.Face face
Stripifier.Node parent
Stripifier.Node left
Stripifier.Node right
int depth
int numChildren
int attrib
static final int WHITE
static final int GREY
static final int BLACK
Stripifier.Node(Stripifier.Face f)
void insert(Stripifier.Node p)
void remove()
void setRoot()
boolean notAccessed()
void processed()
boolean isRoot()
void print()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.