DroidDiagram Programmer's Guide
AnnealLayout Members
Constructors Methods
 


Implements a simulated annealing graph layout algorithm.

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

 Public Constructors

  Name Description

AnnealLayout

Initializes a new instance of the AnnealLayout class.

 Public Methods

  Name Description

arrange

Applies the layout to the specified Diagram.

getAnchoring

Gets a value specifying how links will be aligned to the anchor points of nodes.

getBoundaryFactor

Gets a value indicating how important the distance from nodes to the layout area boundaries is relatively to the other criteria considered by the algorithm.

getCrossingLinksCost

Gets a value specifying how important the low number of link crossings is relatively to the other criteria considered by the algorithm.

getDistributionFactor

Gets a value indicating the importance of node distribution relatively to the other criteria considered by the algorithm.

getInitialTemperature

Gets the initial temperature of the simulated annealing process.

getIterationsPerStage

Gets how many node shift iterations to perform at each stage of the algorithm.

getKeepGroupLayout

Gets a value indicating whether to treat each Group of nodes as a single vertex in the arranged graph.

getLayoutArea

Gets the size of the layout area.

getLinkLengthFactor

Gets a value specifying how important the short length of links is relatively to the other criteria considered by the algorithm.

getMultipleGraphsOrientation

Gets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other.

getNodeLinkCrossingCost

Gets a value specifying how important the low number of crossings of links with edges is relatively to the other criteria considered by the algorithm.

getNodeLinkDistFactor

Gets a value specifying the importance of the distance between nodes and links relative to the other criteria considered by the algorithm.

getPrecision

Gets the cost calculations precision.

getRandomize

Gets a value indicating whether the nodes should be placed at random positions when the layout routine starts.

getRoot

Gets the diagram node that specifies which connected graph in the diagram should be arranged.

getSplitGraph

Whether unconnected sub-graphs should be laid out independently from each other.

getStages

Gets how many cooling stages the algorithm should simulate.

getTemperatureScale

Gets how much the simulated temperature is decreased at each stage of the algorithm.

getWidthHeightRatio

Gets what width / height ratio the layout area should have.

init

Returns an AnnealLayoutBuilder object used to configure this AnnealLayout instance.

setAnchoring

Sets a value specifying how links will be aligned to the anchor points of nodes.

setBoundaryFactor

Sets a value indicating how important the distance from nodes to the layout area boundaries is relatively to the other criteria considered by the algorithm.

setCrossingLinksCost

Sets a value specifying how important the low number of link crossings is relatively to the other criteria considered by the algorithm.

setDistributionFactor

Sets a value indicating the importance of node distribution relatively to the other criteria considered by the algorithm.

setInitialTemperature

Sets the initial temperature of the simulated annealing process.

setIterationsPerStage

Sets how many node shift iterations to perform at each stage of the algorithm.

setKeepGroupLayout

Sets a value indicating whether to treat each Group of nodes as a single vertex in the arranged graph.

setLayoutArea

Sets the size of the layout area.

setLinkLengthFactor

Sets a value specifying how important the short length of links is relatively to the other criteria considered by the algorithm.

setMultipleGraphsOrientation

Sets a value indicating how multiple independent graphs in the diagram should be positioned relatively to each other.

setNodeLinkCrossingCost

Sets a value specifying how important the low number of crossings of links with edges is relatively to the other criteria considered by the algorithm.

setNodeLinkDistFactor

Sets a value specifying the importance of the distance between nodes and links relative to the other criteria considered by the algorithm.

setPrecision

Sets the cost calculations precision. 1 specifies highest precision. Accepted values are between 0.9 and 1. The algorithm completes faster when running with a lower precision, but produces slightly worse results.

setRandomize

Sets a value indicating whether the nodes should be placed at random positions when the layout routine starts.

setRoot

Sets the diagram node that specifies which connected graph in the diagram should be arranged.

setSplitGraph

Whether unconnected sub-graphs should be laid out independently from each other.

setStages

Sets how many cooling stages the algorithm should simulate.

setTemperatureScale

Sets how much the simulated temperature is decreased at each stage of the algorithm.

setWidthHeightRatio

Sets what width / height ratio the layout area should have.

with

Returns an AnnealLayoutBuilder object used to configure and create new AnnealLayout instances.

 See Also

AnnealLayout Class
com.mindfusion.diagramming Namespace