com.mindfusion.diagramming.jlayout
Class TriangularLayout
java.lang.Object
com.mindfusion.diagramming.jlayout.TriangularLayout
public class TriangularLayout
- extends java.lang.Object
Performs triangular layout on simple, connected graphs.
The triangular layout places vertices on a virtual grid, such that if the source graph
is planar it is guaranteed that all edges will have a single segment and will not intersect.
If the graph is not planar, the intersecting edges are optionally segmented and bended
in order to improve readability.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TriangularLayout
public TriangularLayout()
- Initializes a new instance of the
TriangularLayout
class.
arrange
public boolean arrange(Graph igraph,
TriangularLayoutInfo info)
- Applies the layout to the specified graph using the specified settings.