Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.ToolbarLayout


    /**
     * @generated
     */
    public KindFigure() {

      ToolbarLayout layoutThis = new ToolbarLayout();
      layoutThis.setStretchMinorAxis(true);
      layoutThis.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);

      layoutThis.setSpacing(0);
      layoutThis.setVertical(true);

      this.setLayoutManager(layoutThis);

      createContents();
    }
View Full Code Here


    }
    extendedDisplay =
      CoffeaEditorsPlugin.getDefault().isSelectionDetailed();
    packageService = pck;
   
    ToolbarLayout layout = new ToolbarLayout();
    /*
    layout.setMinorAlignment(ToolbarLayout.ALIGN_CENTER);
    layout.setStretchMinorAxis(false);
    layout.setSpacing(2);
    */
    layout.setSpacing(6);
    setLayoutManager(layout);
    setBorder(new LineBorder(ColorConstants.black,1));
    backgroundColor = new Color(null,255,255,206);
    setBackgroundColor(backgroundColor);
    setOpaque(true);
    String name = packageService.getSimpleName();
   
    Label nameLabel = new Label(name, createPackageIcon());
    add(nameLabel);
    List<ITypeService<?, ?>> typeServices =
      packageService.getTypesServices();
   
    ToolbarLayout membersLayout = new ToolbarLayout();
    membersLayout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
    membersLayout.setStretchMinorAxis(false);
    membersLayout.setSpacing(4);
   
    Figure membersFigure = new Figure();
    membersFigure.setLayoutManager(membersLayout);
    membersFigure.setBorder(new CompartmentFigureBorder());
    for(ITypeService<?, ?> typeSrv : typeServices) {
View Full Code Here

      throw new IllegalArgumentException(
          "Missing type service"
      );
    }
    typeService = srv;
    ToolbarLayout layout = new ToolbarLayout();
    layout.setSpacing(4);
    setLayoutManager(layout)
    setBorder(new LineBorder(ColorConstants.black,1));
    backgroundColor = new Color(null,255,255,255);
    setBackgroundColor(backgroundColor);
    setOpaque(true);
View Full Code Here

      throw new IllegalArgumentException(
          "Missing members services"
      );
    }
    displayedMembersServices = dsplMbrsSrvs;
    ToolbarLayout layout = new ToolbarLayout();
    layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
    layout.setStretchMinorAxis(false);
    layout.setSpacing(4);
    setLayoutManager(layout);
    setBorder(new CompartmentFigureBorder());
  }
View Full Code Here

    decorator = createEditPartMarkerDecorator();
    return decorator.createFigure(mainTrayTitleFigure);
  }
 
  protected EditPartMarkerDecorator createEditPartMarkerDecorator ( ) {
    return new TrayMarkerDecorator((EObject)getModel(), new ToolbarLayout());
  }
View Full Code Here

    decorator = createEditPartMarkerDecorator ();
    return decorator.createFigure(entryFigure);
  }
 
  protected EditPartMarkerDecorator createEditPartMarkerDecorator ( ) {
    return new TrayMarkerDecorator((EObject)getModel(), new ToolbarLayout());
  }
View Full Code Here

    return new Figure();
  }
 
  protected IFigure createChildrenFigure() {
    Figure result = new Figure();
    result.setLayoutManager(new ToolbarLayout());
    return result;
  }
View Full Code Here

  protected class TrayContainerFigure extends Figure {
    protected IFigure titleFigure;
    protected IFigure childrenFigure;
    public TrayContainerFigure() {
      super();
      setLayoutManager(new ToolbarLayout());
      setOpaque(true);
      setBackgroundColor(CommonUIPlugin.getDefault().getColorRegistry().get(IDetailsColors.COLOR_TRAY_BACKGROUND));
    }
View Full Code Here

     * @param boundsReference
     */
    public DecoratorHolderFigure (HandleBounds boundsReference) {
      super();
      this.handleBoundsReference = boundsReference;
      setLayoutManager(new ToolbarLayout());
    }
View Full Code Here

public class EventFigure extends Figure {
  private ToolbarLayout layout;

  public EventFigure(String name, long end, long start) {

    this.layout = new ToolbarLayout();
    setLayoutManager(this.layout);
    Label nameLabel = new Label();
    nameLabel.setText(name);
    setBackgroundColor(ColorConstants.lightGray);
    add(nameLabel);
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.ToolbarLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.