Beispiel #1
0
 @Override
 protected void addChildVisual(EditPart childEditPart, int index) {
   // TODO Auto-generated method stub
   IFigure child = ((GraphicalEditPart) childEditPart).getFigure();
   figure.getCenter().add(child, index);
   // super.addChildVisual(childEditPart, index);
 }
Beispiel #2
0
  @Override
  protected IFigure createFigure() {
    // TODO Auto-generated method stub
    //		Layer figure = new Layer();
    //		Figure bFigure = new Figure();
    //		bFigure.setBackgroundColor(ColorConstants.darkGray);
    //		bFigure.setPreferredSize(100, 50);
    //		ToolbarLayout tl = new ToolbarLayout();
    //		tl.setStretchMinorAxis(true);
    //		tl.setVertical(true);
    //		figure.setLayoutManager(tl);

    figure = new BorderFigure();
    figure.getBottom().setPreferredSize(100, 80);
    return figure;
  }