com.mindfusion.diagramming.jlayout
Class LayeredLayoutStatistics

java.lang.Object
  extended by com.mindfusion.diagramming.jlayout.LayeredLayoutStatistics

public class LayeredLayoutStatistics
extends java.lang.Object

Encapsulates information about a layered layout which has already complete.


Constructor Summary
LayeredLayoutStatistics()
          Initializes a new instance of the LayeredLayoutStatistics class.
 
Method Summary
 int getLayerCount()
          Gets the total number of layers in the layout.
 java.util.Hashtable<Link,java.lang.Integer> getLinkLayerCount()
          Gets a mapping between links and the number of layers they run through.
 java.util.Hashtable<Node,java.lang.Double> getNodeGridPositions()
          Gets a mapping between nodes and their assigned grid positions.
 java.util.Hashtable<Node,java.lang.Integer> getNodeLayerIndices()
          Gets a mapping between nodes and their assigned layers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayeredLayoutStatistics

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

Method Detail

getNodeLayerIndices

public java.util.Hashtable<Node,java.lang.Integer> getNodeLayerIndices()
Gets a mapping between nodes and their assigned layers.


getNodeGridPositions

public java.util.Hashtable<Node,java.lang.Double> getNodeGridPositions()
Gets a mapping between nodes and their assigned grid positions.


getLinkLayerCount

public java.util.Hashtable<Link,java.lang.Integer> getLinkLayerCount()
Gets a mapping between links and the number of layers they run through.


getLayerCount

public int getLayerCount()
Gets the total number of layers in the layout.