DroidDiagram Programmer's Guide
GridLayout Members
Constructors Methods
 


Implements a grid graph layout algorithm. GridLayout arranges diagram nodes in a grid, keeping connected nodes close together. The algorithm strives to achieve a small number of link crossings. It is based on an iterative process whose initial steps shuffle the grid nodes randomly. That can lead to very different results each time the algorithm is run.

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

 Public Constructors

  Name Description

GridLayout

Initializes a new instance of the GridLayout class.

 Public Methods

  Name Description

arrange

Arranges the specified diagram.

getAnchoring

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

getEndNode

Gets the node that should be placed at the bottom right corner of the grid.

getGridSize

Gets the desired distance between adjacent grid points.

getIterations

Gets the number of iterations that the layout algorithm should run.

getKeepGroupLayout

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

getRandomSeed

Gets the randomization seed used for generating random node positions.

getStartNode

Gets the node that should be placed at the upper left corner of the grid.

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.

setEndNode

Sets the node that should be placed at the bottom right corner of the grid.

setGridSize

Sets the desired distance between adjacent grid points.

setIterations

Sets the number of iterations that the layout algorithm should run.

setKeepGroupLayout

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

setRandomSeed

Sets the randomization seed used for generating random node positions.

setStartNode

Sets the node that should be placed at the upper left corner of the grid.

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.

 See Also

GridLayout Class
com.mindfusion.diagramming Namespace