com.mindfusion.diagramming.jlayout
Class LayeredLayoutInfo

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

public class LayeredLayoutInfo
extends java.lang.Object


Constructor Summary
LayeredLayoutInfo()
           
LayeredLayoutInfo(int orientation, float layerDistance, float nodeDistance, XDimension2D.Double margins)
           
 
Method Summary
 int getDirection()
           
 boolean getEnableCustomLayers()
          Gets a value indicating whether the layered layout will honor the LayeredLayoutTraits.Layer flags.
 Node getEndNode()
           
 boolean getEnforceLinkFlow()
          Gets a value indicating whether the layout will force all links to go in the same direction.
 boolean getIgnoreNodeSize()
           
 float getLayerDistance()
           
 float getLinksCompactFactor()
           
 XDimension2D.Double getMargins()
          Gets the distance between the top-left corner of the smallest rectangle containing the arranged diagram
 float getNodeDistance()
           
 int getOrientation()
           
 boolean getSplitLayers()
           
 Node getStartNode()
           
 LayeredLayoutStatistics getStatistics()
          Gets layout-specific information about the nodes and links participating in the layout.
 boolean getStraightenLongLinks()
           
 long getTimeLimit()
           
 void setDirection(int value)
           
 void setEnableCustomLayers(boolean value)
          Sets a value indicating whether the layered layout will honor the LayeredLayoutTraits.Layer flags.
 void setEndNode(Node value)
           
 void setEnforceLinkFlow(boolean value)
          Sets a value indicating whether the layout will force all links to go in the same direction.
 void setIgnoreNodeSize(boolean value)
           
 void setLayerDistance(float value)
           
 void setLinksCompactFactor(float value)
           
 void setMargins(XDimension2D.Double value)
          Gets the distance between the top-left corner of the smallest rectangle containing the arranged diagram
 void setNodeDistance(float value)
           
 void setOrientation(int value)
           
 void setSplitLayers(boolean value)
           
 void setStartNode(Node value)
           
 void setStraightenLongLinks(boolean value)
           
 void setTimeLimit(long value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayeredLayoutInfo

public LayeredLayoutInfo()

LayeredLayoutInfo

public LayeredLayoutInfo(int orientation,
                         float layerDistance,
                         float nodeDistance,
                         XDimension2D.Double margins)
Method Detail

getOrientation

public int getOrientation()

setOrientation

public void setOrientation(int value)

getDirection

public int getDirection()

setDirection

public void setDirection(int value)

getLayerDistance

public float getLayerDistance()

setLayerDistance

public void setLayerDistance(float value)

getNodeDistance

public float getNodeDistance()

setNodeDistance

public void setNodeDistance(float value)

getMargins

public XDimension2D.Double getMargins()
Gets the distance between the top-left corner of the smallest rectangle containing the arranged diagram


setMargins

public void setMargins(XDimension2D.Double value)
Gets the distance between the top-left corner of the smallest rectangle containing the arranged diagram


getSplitLayers

public boolean getSplitLayers()

setSplitLayers

public void setSplitLayers(boolean value)

getLinksCompactFactor

public float getLinksCompactFactor()

setLinksCompactFactor

public void setLinksCompactFactor(float value)

getTimeLimit

public long getTimeLimit()

setTimeLimit

public void setTimeLimit(long value)

getIgnoreNodeSize

public boolean getIgnoreNodeSize()

setIgnoreNodeSize

public void setIgnoreNodeSize(boolean value)

getEnableCustomLayers

public boolean getEnableCustomLayers()
Gets a value indicating whether the layered layout will honor the LayeredLayoutTraits.Layer flags.


setEnableCustomLayers

public void setEnableCustomLayers(boolean value)
Sets a value indicating whether the layered layout will honor the LayeredLayoutTraits.Layer flags.


getStatistics

public LayeredLayoutStatistics getStatistics()
Gets layout-specific information about the nodes and links participating in the layout.


getEnforceLinkFlow

public boolean getEnforceLinkFlow()
Gets a value indicating whether the layout will force all links to go in the same direction. If the supplied graph has cycles, it will be made acyclic prior the layout. EnableCustomLayers and SplitLayers are ignored if this property is set to true.


setEnforceLinkFlow

public void setEnforceLinkFlow(boolean value)
Sets a value indicating whether the layout will force all links to go in the same direction. If the supplied graph has cycles, it will be made acyclic prior the layout. EnableCustomLayers and SplitLayers are ignored if this property is set to true.


getStraightenLongLinks

public boolean getStraightenLongLinks()

setStraightenLongLinks

public void setStraightenLongLinks(boolean value)

getStartNode

public Node getStartNode()

setStartNode

public void setStartNode(Node value)

getEndNode

public Node getEndNode()

setEndNode

public void setEndNode(Node value)