|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ArchitectLayout
The ArchitectLayout interface is a generic interface to a collection of graph layout algorithms. Its features include optional animation of the layout, and setting an overall maximum boundary for the laid-out graph.
Example for using this interface:
ArchitectLayout layout = new MyFavouriteLayout();
layout.setup(myNodes, myEdges, myMaximumBounds);
while (!layout.isDone()) {
layout.nextFrame();
myComponent.paint();
}
| Method Summary | |
|---|---|
void |
done()
Interrupts the algorithm and node bounds in a consistent state. |
java.awt.Dimension |
getNewArea(java.util.List<? extends LayoutNode> nodes)
|
boolean |
isDone()
Returns true iff the layout is finished. |
void |
nextFrame()
Updates all the node locations to correspond with the positions they should have in the next frame. |
void |
setup(java.util.Collection<? extends LayoutNode> nodes,
java.util.Collection<? extends LayoutEdge> edges,
java.awt.Rectangle frame)
Sets up the layout algoritm. |
| Method Detail |
|---|
void setup(java.util.Collection<? extends LayoutNode> nodes,
java.util.Collection<? extends LayoutEdge> edges,
java.awt.Rectangle frame)
nodes - The list of entities to be placed onpreferedFrames - The prefered number of animation frames, may be ignored by the layout algorithmjava.awt.Dimension getNewArea(java.util.List<? extends LayoutNode> nodes)
void done()
boolean isDone()
void nextFrame()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||