org.eclipse.draw2d.graph
Class NodeList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.eclipse.draw2d.graph.NodeList
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable
- Direct Known Subclasses:
- Rank
- public class NodeList
- extends ArrayList
A list containing nodes.
- Since:
- 2.1.2
- See Also:
- Serialized Form
Constructor Summary |
NodeList()
Constructs an empty NodeList. |
NodeList(NodeList list)
Constructs a NodeList with the elements from the specified list. |
Method Summary |
Node |
getNode(int index)
Returns the Node at the given index. |
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 |
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
getNode
public Node getNode(int index)
- Returns the Node at the given index.
- Parameters:
index
- the index
- Returns:
- the node at a given index
Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.