public IFigure createFigure(IFigure figure) {
LayeredPane pane = new LayeredPane();
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) {