org.eclipse.draw2d.graph
Class NodeList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.eclipse.draw2d.graph.NodeList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable
Direct Known Subclasses:
Rank

public class NodeList
extends java.util.ArrayList

Since:
2.1
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NodeList()
          Constructs an empty NodeList.
NodeList(NodeList list)
          Constructs a NodeList with the elements from the specified list.
 
Method Summary
 void adjustRank(int delta)
          For internal use only.
 Node getNode(int index)
          Returns the Node at the given index.
 void normalizeRanks()
          For internal use only.
 void resetFlags()
          For internal use only.
 void resetIndices()
          For internal use only
 void resetSortValues()
          For internal use only.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

NodeList

public NodeList()
Constructs an empty NodeList.


NodeList

public NodeList(NodeList list)
Constructs a NodeList with the elements from the specified list.

Parameters:
list - the list whose elements are to be added to this list
Method Detail

adjustRank

public void adjustRank(int delta)
For internal use only. Adjusts the rank value of all nodes in this list by the specified amount.

Parameters:
delta - the amount to adjust ranks.

resetSortValues

public void resetSortValues()
For internal use only.


resetIndices

public void resetIndices()
For internal use only


normalizeRanks

public void normalizeRanks()
For internal use only. Adjusts all nodes ranks' equally such that the minimum rank is zero.


getNode

public Node getNode(int index)
Returns the Node at the given index.

Parameters:
index - the index
Returns:
the node at a given index

resetFlags

public void resetFlags()
For internal use only. Resets all nodes' flags.