N
- The node type for the graphE
- The edge type for the graphpublic interface GraphArrangement<N,E> extends Arrangement<N>
Interface for all graph arrangements supported by this package. This interface provides a set of methods for arranging graphs which are independent of the actual node type or renderer used.
An Arrangement should attempt to arrange all nodes in the graph or in the cluster containing the specified node. If it does not, an ArrangementException should be thrown to indicate that not all nodes have been arranged.
Modifier and Type | Method and Description |
---|---|
void |
arrange(Graph<N,E> graph)
Arranges the specified Graph
|
getNodeLocation, getSize, setMargin, setSize, setSize
void arrange(Graph<N,E> graph) throws ArrangementException
graph
- the graph to be arrangedArrangementException
- If there is a problem determining the
arrangement