|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectexe.VisEdge
exe.Edge
public class Edge
This class maintains the information for a single edge in the
Tree data structure. An Edge object inherits
from the VisEdge class and adds additional data members and
methods to allow these edges to be used in binary and general trees.
In order to use any of these tree classes in a script-producing program, the
script-producing program must import the package exe.
| Constructor Summary | |
|---|---|
Edge()
Constructs an Edge with default values. |
|
Edge(TreeNode s,
TreeNode e)
Constructs an Edge by specifying the TreeNode
from which it begins and the TreeNode at which it ends. |
|
| Method Summary | |
|---|---|
TreeNode |
getEnd()
Accesses the ending TreeNode for this Edge. |
TreeNode |
getStart()
Accesses the starting TreeNode for this Edge. |
void |
setEnd(TreeNode e)
Assigns the ending TreeNode for this Edge. |
void |
setStart(TreeNode s)
Assigns the starting TreeNode for this Edge. |
| Methods inherited from class exe.VisEdge |
|---|
activate, clearEdge, deactivate, getEX, getEY, getHexColor, getSX, getSY, getWeight, isActivated, setEX, setEY, setHexColor, setSX, setSY, setWeight |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Edge()
Edge with default values.
public Edge(TreeNode s,
TreeNode e)
Edge by specifying the TreeNode
from which it begins and the TreeNode at which it ends.
s - Indicates the TreeNode at which this
Edge begins. By convention, this is the parent
node.e - Indicates the TreeNode at which this
Edge ends. By convention, this is the child node.| Method Detail |
|---|
public void setStart(TreeNode s)
TreeNode for this Edge.
s - Specifies the TreeNode at which this
Edge begins. By convention, this is the parent
node. A reference to s is assigned to
start.public void setEnd(TreeNode e)
TreeNode for this Edge.
e - Specifies the TreeNode at which this
Edge ends. By convention, this is the child node.
A reference to e is assigned to end.public TreeNode getStart()
TreeNode for this Edge.
TreeNode reference stored in
start. If start has not been
initialized, returns null.public TreeNode getEnd()
TreeNode for this Edge.
TreeNode reference stored in
end. If end has not been initialized,
returns null.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||