DroidDiagram Programmer's Guide
TreeMapLayout.setSquarify Method
See Also
 






Sets a value indicating whether the layout should attempt to keep the dimension ratio of the nodes closer to 1.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void setSquarify (
    boolean value
)

 Parameters

value

true to keep the ratio of node sides as close as possible to one, or false otherwise.

 Remarks

If set to false, each level of the hierarchy is arranged in rows or columns with same height/width, which might create very narrow rectangles when Weight values differ greatly or nodes have many children. The alternating orientation between levels however helps to distinguish between different levels in the hierarchy. The initial direction of nodes (in topmost level) depends on the value of Orientation.

 See Also

TreeMapLayout Members
TreeMapLayout Class
com.mindfusion.diagramming Namespace