zeus.gui.graph
Class GraphNode

java.lang.Object
  extended byzeus.gui.graph.GraphNode

public class GraphNode
extends java.lang.Object


Field Summary
static int CHILD
           
protected  java.util.Vector children
           
protected  int nodeType
           
static int PARENT
           
protected  java.util.Vector parents
           
protected  java.util.Vector siblings
           
protected  java.lang.Object user_object
           
 
Constructor Summary
GraphNode(java.lang.Object user_object)
           
 
Method Summary
 void addChild(GraphNode node)
           
protected  boolean addItem(GraphNode node, java.util.Vector nodeList)
           
 void addParent(GraphNode node)
           
 void addSibling(GraphNode node)
           
 GraphNode[] getChildren()
           
 int getNodeType()
           
 GraphNode[] getParents()
           
 GraphNode[] getSiblings()
           
 java.lang.Object getUserObject()
           
 boolean hasChild(GraphNode node)
           
 boolean hasParent(GraphNode node)
           
 boolean hasSibling(GraphNode node)
           
 void initialize()
           
 void removeChild(GraphNode node)
           
 void removeParent(GraphNode node)
           
 void removeSibling(GraphNode node)
           
 void setNodeType(int type)
           
 void setUserObject(java.lang.Object user_object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARENT

public static final int PARENT
See Also:
Constant Field Values

CHILD

public static final int CHILD
See Also:
Constant Field Values

children

protected java.util.Vector children

parents

protected java.util.Vector parents

siblings

protected java.util.Vector siblings

nodeType

protected int nodeType

user_object

protected java.lang.Object user_object
Constructor Detail

GraphNode

public GraphNode(java.lang.Object user_object)
Method Detail

setUserObject

public void setUserObject(java.lang.Object user_object)

getUserObject

public java.lang.Object getUserObject()

setNodeType

public void setNodeType(int type)

getNodeType

public int getNodeType()

initialize

public void initialize()

addItem

protected boolean addItem(GraphNode node,
                          java.util.Vector nodeList)

addSibling

public void addSibling(GraphNode node)

addChild

public void addChild(GraphNode node)

addParent

public void addParent(GraphNode node)

hasSibling

public boolean hasSibling(GraphNode node)

hasChild

public boolean hasChild(GraphNode node)

hasParent

public boolean hasParent(GraphNode node)

removeSibling

public void removeSibling(GraphNode node)

removeChild

public void removeChild(GraphNode node)

removeParent

public void removeParent(GraphNode node)

getChildren

public GraphNode[] getChildren()

getSiblings

public GraphNode[] getSiblings()

getParents

public GraphNode[] getParents()


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.