DroidDiagram Programmer's Guide
GridLayoutBuilder Members
Constructors Methods
 


A class used to initialize GridLayout objects.

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

 Public Constructors

  Name Description

GridLayoutBuilder

Overloaded.  

 Public Methods

  Name Description

anchoring

Sets a value indicating how links should be aligned to the anchor points of tree nodes.

create

Creates a new object with the attributes accumulated by this builder.

endNode

Sets the node that should be placed at the bottom right corner of the grid. If you set the end node, you should also call the setStartNode method to specify the start node. GridLayout usually produces better layouts if you do not specify start and end nodes; in such a case the algorithm automatically selects suitable nodes.

get

Returns an existing object passed for initialization to this builder.

gridSize

Sets the desired distance between adjacent grid points.

iterations

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

keepGroupLayout

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

randomSeed

Sets the randomization seed used for generating random node positions.

startNode

Sets the node that should be placed at the upper left corner of the grid. If you set the start node, you should also call the GridLayout.setEndNode method to specify the end node. GridLayout usually produces better layouts if you do not specify start and end nodes; in such a case the algorithm automatically selects suitable nodes.

xGap

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

yGap

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

 See Also

GridLayoutBuilder Class
com.mindfusion.diagramming.builders Namespace