Examples of MarginBorder


Examples of org.eclipse.draw2d.MarginBorder

    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

Examples of org.eclipse.draw2d.MarginBorder

      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
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.