com.mindfusion.diagramming.jlayout
Class TriangularLayout

java.lang.Object
  extended by 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.


Constructor Summary
TriangularLayout()
          Initializes a new instance of the TriangularLayout class.
 
Method Summary
 boolean arrange(Graph igraph, TriangularLayoutInfo info)
          Applies the layout to the specified graph using the specified settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriangularLayout

public TriangularLayout()
Initializes a new instance of the TriangularLayout class.

Method Detail

arrange

public boolean arrange(Graph igraph,
                       TriangularLayoutInfo info)
Applies the layout to the specified graph using the specified settings.