public interface TreeMapLayout
The sizes are scale-independent. The only thing that matter is that any two children who have the same parent use the same units. Technically, this is up to the layout implementation, but in general each level fills the available area with each child taking a proportional amount of space.
Modifier and Type | Method and Description |
---|---|
Rectangle2D[] |
layout(Rectangle2D boundary,
double[] areas,
int level)
Returns an array of bounding rectangles in the same order as the provides
areas array. |
Rectangle2D[] layout(Rectangle2D boundary, double[] areas, int level)
areas
array. The level indicates the current level in the hierarchy
(see NestedTreeMap.getLevel(int)
). The boundary
rectangle
contains the area within which all children should be layed out.Copyright © 2018 Metron, Inc.. All rights reserved.