org.wilmascope.graph
Class ClusterList
java.lang.Object
org.wilmascope.graph.List<Cluster>
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
Fields inherited from class org.wilmascope.graph.List |
elements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterList
public ClusterList(ClusterList l)
ClusterList
public ClusterList()
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