Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.tree.TilingPolicy
See Also
Constants
A tiling policy that places the child nodes one after another inside the parent node.
Remarks
Child nodes are either tiled vertically (slice), one on top of the other with the width equal to the parent's width. Or they are tiled horizontally (dice), one next to the other with the height equal to the parent's height. The tiling strategy alternates with the hierarchy levels, e.g., level 1 uses slice, level 2 uses dice, level 3 uses slice and so on.
This policy keeps the ordering of the children defined by nodeComparer stable. Either children are strictly ordered from left to right (dice) or from top to bottom (slice).
See Also
Sample Graphs
A tiling policy that uses the so-called 'squarify' algorithm.
Remarks
It tries to generate nodes with a size close to a specified aspect ratio. This increases the readability of the tree maps.
The child ordering given by nodeComparer is considered but it is not as predictable as for SLICE_AND_DICE. The order is not strictly from top to bottom or from left to right, but it might differ for different subsets of children. This is an inherent part of the squarified procedure.
The implementation follows the approach of Bruls et al. [Bruls, Mark; Huizing, Kees; van Wijk, Jarke J. (2000). 'Squarified treemaps'].
See Also
Sample Graphs
Static Methods
Converts the argument to TilingPolicy.
Parameters
A map of options to pass to the method.
- value - TilingPolicy
- The value to convert to TilingPolicy.
Returns
- ↪TilingPolicy
- Either
value
if it is already a TilingPolicy or an appropriate converted value.