Eclipse Draw2d
3.1

org.eclipse.draw2d.graph
Class Rank

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

public class Rank
extends NodeList

Since:
2.1.2
See Also:
Serialized Form

Field Summary
 int total
          For internal use only.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Rank()
           
 
Method Summary
 void add(Node n)
          Adds a node to this rank.
 void assignIndices()
          Deprecated.  
 int count()
          Returns the number of nodes in this rank.
 boolean equals(Object o)
           
 int hashCode()
           
 void sort()
          Deprecated. Do not call
 
Methods inherited from class org.eclipse.draw2d.graph.NodeList
adjustRank, getNode, normalizeRanks, resetFlags, resetIndices, resetSortValues
 
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
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, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

total

public int total
For internal use only. The total "size" of this rank, where size may be weighted per node.

Constructor Detail

Rank

public Rank()
Method Detail

add

public void add(Node n)
Adds a node to this rank.

Parameters:
n - the node

assignIndices

public void assignIndices()
Deprecated.  

$TODO move this to RankSorter


count

public int count()
Returns the number of nodes in this rank.

Returns:
the number of nodes

equals

public boolean equals(Object o)
See Also:
Object.equals(Object)

hashCode

public int hashCode()
See Also:
Overridden for speed based on absolute equality.

sort

public void sort()
Deprecated. Do not call


Eclipse Draw2d
3.1

Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.