DroidDiagram Programmer's Guide
LayeredLayout Members
Constructors Methods
 


Implements a layered graph layout algorithm.

The following tables list the members exposed by the LayeredLayout type.

 Public Constructors

  Name Description

LayeredLayout

 

 Public Methods

  Name Description

arrange

Arranges the specified flowchart.

getAnchoring

Gets how to align links to the anchor points of nodes. (Inherited from AbstractLayout.)

getDirection

Gets a value indicating in what direction the links in the arranged diagram should go.

getEnableCustomLayers

Gets a value indicating whether to indicating whether the layered layout will honor the LayeredLayoutTraits.Layer flags.

getEndNode

Gets the node that should be placed in the last layer of the arranged graph.

getEnforceLinkFlow

Gets a value indicating whether to attempt to force all links to go in the same direction. If the graph being arrange has cycles, some of the links will still go backward. EnableCustomLayers and SplitLayers are ignored if this property is set to true.

getGrowToFit

Gets a value indicating whether the diagram boundaries should grow to fit the arranged content. (Inherited from AbstractLayout.)

getIgnoreNodeSize

Gets a value indicating whether the distance between adjacent nodes in the final layout should be independent of the nodes' size.

getKeepGroupLayout

Gets a value specifying whether the relative position of nodes within groups should be kept intact.

getLayerDistance

Gets the desired distance between adjacent layers.

getLayoutLink

Gets an object, which is notified when the position of a link is changed by the layout. (Inherited from AbstractLayout.)

getLayoutNode

Gets an object, which is notified when the position of a node is changed by the layout. (Inherited from AbstractLayout.)

getLinksCompactFactor

Gets a value indicating how much to compact the outermost links.

getLinkType

Gets the appearance of the links in the final layout.

getMargins

Gets the distance between the top-left corner of the smallest rectangle containing the arranged diagram and the top-left point of the document bounds. (Inherited from AbstractLayout.)

getMultipleGraphsPlacement

Gets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other. (Inherited from AbstractLayout.)

getNodeDistance

Gets the desired distance between adjacent nodes on the same layer.

getOrientation

Gets a value indicating what the overall orientation of the arranged diagram should be.

getProgress

Gets the progress callback delegate. (Inherited from AbstractLayout.)

getSplitLayers

Gets a value indicating whether layers that are much wider than the other layers should be split.

getStartNode

Gets the node that should be placed in the first layer of the arranged graph.

getStatistics

Gets layout-specific information about the nodes and links participating in the layout.

getStraightenLongLinks

Gets whether the layout algorithm should strive to straigten links that cross more than one layer of the graph.

getTimeLimit

Gets the time-out value set for the path-finding part of the layered layout algorithm.

getXGap

Gets a value indicating how much horizontal space should be left between the document boundaries and the graph.

getYGap

Gets a value indicating how much vertical space should be left between the document boundaries and the graph.

init

Returns a LayeredLayoutBuilder object used to configure this LayeredLayout instance.

removeMidleSegmentPoint

  (Inherited from AbstractLayout.)

setAnchoring

Sets how to align links to the anchor points of nodes. (Inherited from AbstractLayout.)

setDirection

Sets a value indicating in what direction the links in the arranged diagram should go.

setEnableCustomLayers

Sets a value indicating whether to indicating whether the layered layout will honor the LayeredLayoutTraits.Layer flags.

setEndNode

Sets the node that should be placed in the last layer of the arranged graph. This value is honored only if a start node is specified too.

setEnforceLinkFlow

Sets a value indicating whether to attempt to force all links to go in the same direction. If the graph being arrange has cycles, some of the links will still go backward. EnableCustomLayers and SplitLayers are ignored if this property is set to true.

setGrowToFit

Sets a value indicating whether the diagram boundaries should grow to fit the arranged content. (Inherited from AbstractLayout.)

setIgnoreNodeSize

Sets a value indicating whether the distance between adjacent nodes in the final layout should be independent of the nodes' size.

setKeepGroupLayout

Sets a value specifying whether the relative position of nodes within groups should be kept intact.

setLayerDistance

Sets the desired distance between adjacent layers.

setLayoutLink

Sets an object, which is notified when the position of a link is changed by the layout. (Inherited from AbstractLayout.)

setLayoutNode

Sets an object, which is notified when the position of a node is changed by the layout. (Inherited from AbstractLayout.)

setLinksCompactFactor

Sets a value indicating how much to compact the outermost links.

setLinkType

Sets the appearance of the links in the final layout.

setMargins

Sets the distance between the top-left corner of the smallest rectangle containing the arranged diagram and the top-left point of the document bounds. (Inherited from AbstractLayout.)

setMultipleGraphsPlacement

Sets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other. (Inherited from AbstractLayout.)

setNodeDistance

Sets the desired distance between adjacent nodes on the same layer.

setOrientation

Sets a value indicating what the overall orientation of the arranged diagram should be.

setProgress

Sets the progress callback delegate. (Inherited from AbstractLayout.)

setSplitLayers

Sets a value indicating whether layers that are much wider than the other layers should be split.

setStartNode

Sets the node that should be placed in the first layer of the arranged graph.

setStraightenLongLinks

Sets whether the layout algorithm should strive to straigten links that cross more than one layer of the graph.

setTimeLimit

Sets a time-out value for the path-finding part of the layered layout algorithm.

setXGap

Sets a value indicating how much horizontal space should be left between the document boundaries and the graph.

setYGap

Sets a value indicating how much vertical space should be left between the document boundaries and the graph.

with

Returns a LayeredLayoutBuilder object used to configure and create new LayeredLayout instances.

 See Also

LayeredLayout Class
com.mindfusion.diagramming Namespace