public interface GraphLayoutListener<N,E>
Modifier and Type | Method and Description |
---|---|
void |
graphLayoutFinished(UniversalGraph<N,E> graph)
Called when a graph layout is finished.
|
void |
graphLayoutStarted(UniversalGraph<N,E> graph)
Called when a graph layout is started.
|
void |
nodeLocationChanged(UniversalGraph<N,E> graph,
N node,
Point previousPreferredLocation,
Point newPreferredLocation)
Called when a graph layout resolves a new location for a node.
|
void graphLayoutStarted(UniversalGraph<N,E> graph)
graph
- the universal graphvoid graphLayoutFinished(UniversalGraph<N,E> graph)
graph
- the universal graphvoid nodeLocationChanged(UniversalGraph<N,E> graph, N node, Point previousPreferredLocation, Point newPreferredLocation)
graph
- the universal graphnode
- the node with changed preferred locationpreviousPreferredLocation
- the previous preferred locationnewPreferredLocation
- the new preferred location