org.eclipse.draw2d.graph
Class Rank
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.eclipse.draw2d.graph.NodeList
org.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. |
Constructor Summary |
Rank()
|
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 |
total
public int total
- For internal use only. The total "size" of this rank, where size may be weighted per
node.
Rank
public Rank()
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
Copyright (c) IBM Corp. and others 2000, 2005. All Rights Reserved.