com.mindfusion.diagramming.jlayout
Class CascadeLayout

java.lang.Object
  extended by com.mindfusion.diagramming.jlayout.CascadeLayout
All Implemented Interfaces:
com.mindfusion.graphs.VertexSizeFunction

public class CascadeLayout
extends java.lang.Object
implements com.mindfusion.graphs.VertexSizeFunction

Performs cascading layout on simple, connected graphs. The cascade layout places vertices on a virtual grid and arranges edges orthogonally, such that if the source graph is planar it is guaranteed that all edges will have no more than two bends and will not intersect.


Constructor Summary
CascadeLayout()
          Initializes a new instance of the CascadeLayout class.
 
Method Summary
 boolean arrange(Graph igraph, CascadeLayoutInfo info)
          Applies the layout to the specified graph using the specified settings.
 com.mindfusion.graphs.Size calc(com.mindfusion.graphs.Vertex vertex)
          VertexSizeFunction.calc implementation.
 CascadeLayoutStatistics getStatistics()
          Gets layout-specific information about the edges and vertices participating in the layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CascadeLayout

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

Method Detail

arrange

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


calc

public com.mindfusion.graphs.Size calc(com.mindfusion.graphs.Vertex vertex)
VertexSizeFunction.calc implementation.

Specified by:
calc in interface com.mindfusion.graphs.VertexSizeFunction

getStatistics

public CascadeLayoutStatistics getStatistics()
Gets layout-specific information about the edges and vertices participating in the layout.