@Override protected IFigure createFigure() { Figure f = new FreeformViewport(); ToolbarLayout tb = new AnimationLayoutManager(true); tb.setSpacing(30); tb.setStretchMinorAxis(false); f.setLayoutManager(tb); f.setBorder( new MarginBorder( DiagramModel.TOP_MARGIN, DiagramModel.SIDE_MARGIN, DiagramModel.BOTTOM_MARGIN, DiagramModel.SIDE_MARGIN)); f.addMouseMotionListener(this); f.setBackgroundColor(ColorScheme.diagramBackground); IFigure label = new Label( " \n Drag classes or methods from the Package Explorer " + "into the diagram to explore and understand code." + "\n Or, use the expandable Palette on the right side of the diagram " + "to design."); this.nonEmptyFigure = new NonEmptyFigure(label); NonEmptyFigureSupport.instructionHighlight(label, 10); f.add(nonEmptyFigure); warning = new Label(""); warning.setLayoutManager(new ToolbarLayout()); NonEmptyFigureSupport.instructionHighlight(warning, 10); f.add(warning); return f; }