org.wilmascope.graph
Class List<T extends GraphElement>

java.lang.Object
  extended by 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()
           
 
Method Summary
 void addAll(List<T> l)
           
 void delete()
          Delete all elements in the list, removing them from the scene and references from their owner cluster's member list.
 void draw()
           
protected  java.util.Vector<T> getElementsVector()
           
 void hide()
           
 java.util.Iterator<T> iterator()
           
 void removeAll(List<T> l)
           
 void show(GraphCanvas graphCanvas)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected java.util.Vector<T extends GraphElement> elements
Constructor Detail

List

public List()
Method Detail

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>