All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class relaaja.netlayout.VGJ.NodeList

java.lang.Object
   |
   +----relaaja.netlayout.VGJ.NodeList

public class NodeList
extends Object
implements Cloneable
A NodeList class for use in a Graph.

Here is the source.

Author:
Larry Barowski

Variable Index

 o firstAvailable_
 o lastSlot_
 o nodes_
 o numNodes_

Constructor Index

 o NodeList()

Method Index

 o addNode(Node)
 o addNodeAt(Node, int)
 o clone()
 o count()
 o firstNode()
 o firstNodeIndex()
 o getFirstAvailable()
 o highestIndex()
Return the largest node index.
 o nextNode(Node)
 o nextNodeIndex(int)
 o nodeFromIndex(int)
 o removeNode(Node)
 o removeNodeAt(int)
 o updateFirstAvailable(int)

Variables

 o nodes_
 private Node nodes_[]
 o lastSlot_
 private int lastSlot_
 o firstAvailable_
 private int firstAvailable_
 o numNodes_
 private int numNodes_

Constructors

 o NodeList
 public NodeList()

Methods

 o count
 public int count()
 o highestIndex
 public int highestIndex()
Return the largest node index.

 o getFirstAvailable
 public int getFirstAvailable()
 o addNodeAt
 public void addNodeAt(Node new_node,
                       int index)
 o addNode
 public void addNode(Node new_node)
 o updateFirstAvailable
 public void updateFirstAvailable(int start)
 o removeNodeAt
 public void removeNodeAt(int index)
 o removeNode
 public void removeNode(Node node)
 o firstNode
 public Node firstNode()
 o nextNode
 public Node nextNode(Node prev_node)
 o firstNodeIndex
 public int firstNodeIndex()
 o nextNodeIndex
 public int nextNodeIndex(int prev_index)
 o nodeFromIndex
 public Node nodeFromIndex(int index)
 o clone
 public Object clone() throws CloneNotSupportedException
Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index