Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.MarginBorder


    add(contents);
  }

  protected void createInnerBeans(Bean bean) {
    contents.setLayoutManager(new ToolbarLayout());
    contents.setBorder(new MarginBorder(new Insets(8, 11, 8, 8)));
    for (Bean innerBean : bean.getInnerBeans()) {
      contents.add(new BeanFigure(innerBean));
    }
  }
View Full Code Here


  public void createControl(Composite parent) {
    overview = new Canvas(parent, SWT.NONE);
    overview.setBackground(ColorConstants.listBackground);
    LightweightSystem lws = new LightweightSystem(overview);
    thumbnail = new ScrollableThumbnail((Viewport)rootEditPart.getFigure());
    thumbnail.setBorder(new MarginBorder(3));
    thumbnail.setSource(rootEditPart.getLayer(
                        LayerConstants.PRINTABLE_LAYERS));
    lws.setContents(thumbnail);
  }
View Full Code Here

  @Override
  protected IFigure createFigure() {
    Figure panel = new ScalableFreeformLayeredPane();
    panel.setBackgroundColor(ColorConstants.listBackground);
    panel.setLayoutManager(new XYLayout());
    panel.setBorder(new MarginBorder(MARGIN_SIZE));
    
    ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
        cLayer.setAntialias(SWT.ON);
   
    return panel;
View Full Code Here

    this.direction = direction;
    setText(name);
    if (direction == PositionConstants.EAST) {
      setTextPlacement(PositionConstants.SOUTH);
      setIcon(CommonImages.getImage(ConfigGraphCommonImages.SEQUENCE_END_HORIZONTAL));
      setBorder(new MarginBorder(0, 2, 2, 9));
    }
    else {
      setIconTextGap(8);
      setIcon(CommonImages.getImage(ConfigGraphCommonImages.SEQUENCE_END_VERTICAL));
      setBorder(new MarginBorder(2, 0, 2, 9));
    }
  }
View Full Code Here

   * @param header
   * @param footer
   */
  public ParallelActivityFigure(int direction) {
    super(new Label(""), new Label(""), direction); //$NON-NLS-1$ //$NON-NLS-2$   
    setBorder(new MarginBorder(3, 5, 3, 0));
    setOpaque(true);
  }
View Full Code Here

   * @param footer
   */
  public SequentialActivityFigure(int direction) {
    super(new StartTag("", direction), new EndTag("", direction), direction); //$NON-NLS-1$ //$NON-NLS-2$
    if (direction == PositionConstants.EAST) {
      setBorder(new MarginBorder(8, 0, 0, 0));
    }
    else {
      setBorder(new MarginBorder(0, 8, 0, 0));
    }
    setOpaque(true);
  }
View Full Code Here

    this.direction = direction;
    setText(name);
    if (direction == PositionConstants.EAST) {
      setTextPlacement(PositionConstants.SOUTH);
      setIcon(CommonImages.getImage(ConfigGraphCommonImages.SEQUENCE_BEGIN_HORIZONTAL));
      setBorder(new MarginBorder(0, 2, 2, 9));
    }
    else {
      setIcon(CommonImages.getImage(ConfigGraphCommonImages.SEQUENCE_BEGIN_VERTICAL));
      setBorder(new MarginBorder(2, 0, 2, 9));
    }
  }
View Full Code Here

      LightweightSystem lws = new LightweightSystem(overview);
      RootEditPart rep = getGraphicalViewer().getRootEditPart();
      if (rep instanceof ScalableRootEditPart) {
        ScalableRootEditPart root = (ScalableRootEditPart) rep;
        thumbnail = new ScrollableThumbnail((Viewport) root.getFigure());
        thumbnail.setBorder(new MarginBorder(3));
        thumbnail.setSource(root
            .getLayer(LayerConstants.PRINTABLE_LAYERS));
        lws.setContents(thumbnail);
        disposeListener = new DisposeListener() {
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.MarginBorder

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.