org.wilmascope.graph
Class ClusterList

java.lang.Object
  extended by org.wilmascope.graph.List<Cluster>
      extended by org.wilmascope.graph.ClusterList
All Implemented Interfaces:
java.lang.Iterable<Cluster>

public class ClusterList
extends List<Cluster>

Title: WilmaToo Description: Sequel to the ever popular WilmaScope software Copyright: Copyright (c) 2001 Company: WilmaScope.org

Version:
1.0
Author:
Tim Dwyer

Field Summary
 
Fields inherited from class org.wilmascope.graph.List
elements
 
Constructor Summary
ClusterList()
           
ClusterList(ClusterList l)
           
 
Method Summary
 void add(Cluster c)
           
 boolean applyLayout()
          applies the layout changes for all clusters that were calculated by a previous call to calculateLayout()
 void calculateLayout()
           
 boolean isAncestor(Cluster c)
           
 void remove(Cluster c)
           
 void removeFromAll(GraphElement e)
          removes the graph element from all clusters in the list
 
Methods inherited from class org.wilmascope.graph.List
addAll, delete, draw, getElementsVector, hide, iterator, removeAll, show, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterList

public ClusterList(ClusterList l)

ClusterList

public ClusterList()
Method Detail

add

public void add(Cluster c)

remove

public void remove(Cluster c)

calculateLayout

public void calculateLayout()

applyLayout

public boolean applyLayout()
applies the layout changes for all clusters that were calculated by a previous call to calculateLayout()

Returns:
true if all clusters are balanced

isAncestor

public boolean isAncestor(Cluster c)

removeFromAll

public void removeFromAll(GraphElement e)
removes the graph element from all clusters in the list

Parameters:
e - the GraphElement to remove