fig.localLocation.setY(y);
fig.size.setX(width);
double height = (fig.prop.getReal(AREA) / cumulatedArea)* (size.getY() - yOffset);
fig.size.setY( height);
if(fig.size.getX() < fig.minSize.getX() || fig.size.getY() < fig.minSize.getY()){
children[curChild] = new Box(null, areas[curChild].prop);
} else {
children[curChild] = areas[curChild];
}
curChild++;
y+=height;