This Blogpost I’d like to use to tell something about PathLayout, a separate package for layout algorithms in PathVisio.
The Paver plugin uses this package for it’s layout functions. But because it is a separate package, other plugin projects can also make use of this package.
Currently the following layout algorithms are supported:
A Layout implementation that assigns positions to vertices using associations with nested circles. (source: jung)
The Fruchterman-Rheingold algorithm. (source: jung)
Meyer’s “Self-Organizing Map” layout. (source: jung)
The Kamada-Kawai algorithm for node layout. (source: jung)
A simple force-directed spring-embedder. (source: jung)
Force-Directed layout algorithm of the Prefuse software package. (source: prefuse)
If you want to use pathlayout in your own plugin project:
- Add the downloaded jars to your lib folder
- Use the layout enumerator from the LayoutManager class to select and instantiate your layouts