Class SliceAndDiceLayout
- java.lang.Object
-
- com.metsci.glimpse.core.painter.treemap.SliceAndDiceLayout
-
- All Implemented Interfaces:
TreeMapLayout
public class SliceAndDiceLayout extends Object implements TreeMapLayout
Lays out the children in a simplistic manner. It just divides the bounding rectangle into n slices (direction depends on the level).- Author:
- borkholder
-
-
Constructor Summary
Constructors Constructor Description SliceAndDiceLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle2D[]
layout(Rectangle2D boundary, double[] sizes, int level)
Returns an array of bounding rectangles in the same order as the providesareas
array.
-
-
-
Method Detail
-
layout
public Rectangle2D[] layout(Rectangle2D boundary, double[] sizes, int level)
Description copied from interface:TreeMapLayout
Returns an array of bounding rectangles in the same order as the providesareas
array. The level indicates the current level in the hierarchy (seeNestedTreeMap.getLevel(int)
). Theboundary
rectangle contains the area within which all children should be layed out.- Specified by:
layout
in interfaceTreeMapLayout
-
-