Layer layer = new Layer();
if (figureLayout == null) {
if (fillParent) {
figureLayout = new FillParentLayout();
} else {
figureLayout = new AlignedFlowLayout() {
@Override
protected void setBoundsOfChild(IFigure parent, IFigure child, Rectangle bounds) {
parent.getClientArea(Rectangle.SINGLETON);
bounds.translate(Rectangle.SINGLETON.x, Rectangle.SINGLETON.y);