Examples of MarginBorder


Examples of org.eclipse.draw2d.MarginBorder

      fFigureFeatureNodeFigureLabel.setText("Untiteled");

      fFigureFeatureNodeFigureLabel
          .setFont(FFIGUREFEATURENODEFIGURELABEL_FONT);

      fFigureFeatureNodeFigureLabel.setBorder(new MarginBorder(
          getMapMode().DPtoLP(2), getMapMode().DPtoLP(0),
          getMapMode().DPtoLP(2), getMapMode().DPtoLP(5)));

      rrr0.add(fFigureFeatureNodeFigureLabel, BorderLayout.CENTER);
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

  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

Examples of org.eclipse.draw2d.MarginBorder

    layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
    layout.setStretchMinorAxis(false);
    layout.setSpacing(2);
    setLayoutManager(layout);
    setBorder(new CompoundBorder(new CompartmentBorder(),
                   new MarginBorder(2)));
  }
View Full Code Here

Examples of org.eclipse.draw2d.MarginBorder

    layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
    layout.setStretchMinorAxis(false);
    layout.setSpacing(2);
    setLayoutManager(layout);
    setBorder(new CompoundBorder(new CompartmentBorder(),
                   new MarginBorder(2)));
  }
View Full Code Here

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

Examples of org.eclipse.draw2d.MarginBorder

  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

Examples of org.eclipse.draw2d.MarginBorder

  @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

Examples of org.eclipse.draw2d.MarginBorder

    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

Examples of org.eclipse.draw2d.MarginBorder

   * @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

Examples of org.eclipse.draw2d.MarginBorder

   * @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
TOP
Copyright © 2018 www.massapi.com. 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.