org.wilmascope.graph
Class List<T extends GraphElement>
java.lang.Object
org.wilmascope.graph.List<T>
- All Implemented Interfaces:
- java.lang.Iterable<T>
- Direct Known Subclasses:
- ClusterList, EdgeList, NodeList
public abstract class List<T extends GraphElement>
- extends java.lang.Object
- implements java.lang.Iterable<T>
Field Summary |
protected java.util.Vector<T> |
elements
|
Constructor Summary |
List()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elements
protected java.util.Vector<T extends GraphElement> elements
List
public List()
size
public int size()
delete
public void delete()
- Delete all elements in the list, removing them from the scene and
references from their owner cluster's member list.
draw
public void draw()
getElementsVector
protected java.util.Vector<T> getElementsVector()
removeAll
public void removeAll(List<T> l)
addAll
public void addAll(List<T> l)
hide
public void hide()
show
public void show(GraphCanvas graphCanvas)
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<T extends GraphElement>