N
- The node type for the graphE
- The edge type for the graphpublic class ClusterArrangement<N,E> extends AbstractArrangement<N> implements GraphArrangement<N,E>
Constructor and Description |
---|
ClusterArrangement()
Create a ClusterArrangement using a RandomArrangement to arrange each
cluster.
|
ClusterArrangement(GraphArrangement<N,E> arrangement)
Create a ClusterArrangement using the specified arrangement to arrange
each cluster
|
Modifier and Type | Method and Description |
---|---|
void |
arrange(Graph<N,E> graph)
Arrange the graph with this ClusterArrangement.
|
GraphArrangement<N,E> |
getSubArrangement()
return the arrangement which is used to arrange each cluster
|
getMargin, getNodeLocation, getSize, invalidate, setMargin, setNodeLocation, setSize, setSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNodeLocation, getSize, setMargin, setSize, setSize
public ClusterArrangement()
public ClusterArrangement(GraphArrangement<N,E> arrangement)
arrangement
- the arrangement to use on each graph clusterpublic void arrange(Graph<N,E> graph) throws ArrangementException
arrange
in interface GraphArrangement<N,E>
graph
- the graph to arrangeArrangementException
- if there is a problem performing the
arrangement. This will be thrown by the sub-arrangement
algorithm; the ClusterArrangement does not generate any
ArrangementExceptions.public GraphArrangement<N,E> getSubArrangement()