Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.MarginBorder


 
  @Override
  public void render()
  {
    Figure f = new FreeformLayer();
    f.setBorder(new MarginBorder(3));
    f.setLayoutManager(new FreeformLayout());
    setFigure(f);   
  }
View Full Code Here


      LightweightSystem lws = new LightweightSystem(overview);
 
      // create thumbnail
      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

    LightweightSystem lws = new LightweightSystem(_overview);
    ScalableFreeformRootEditPart rootEditPart = (ScalableFreeformRootEditPart) _graphicalViewer
        .getRootEditPart();
    _thumbnail = new FixedScrollableThumbnail(
        (Viewport) rootEditPart.getFigure());
    _thumbnail.setBorder(new MarginBorder(3));
    _thumbnail.setSource(rootEditPart
        .getLayer(LayerConstants.PRINTABLE_LAYERS));
    lws.setContents(_thumbnail);
  }
View Full Code Here

    LightweightSystem lws = new LightweightSystem(overview);
    RootEditPart rep = getGraphicalViewer().getRootEditPart();
    if (rep instanceof ScalableFreeformRootEditPart) {
      ScalableFreeformRootEditPart root = (ScalableFreeformRootEditPart)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() {
        public void widgetDisposed(DisposeEvent e) {
          if (thumbnail != null) {
View Full Code Here

*/
protected IFigure createFigure() {
  Figure f = new FreeformLayer();
//  f.setBorder(new GroupBoxBorder("Diagram"));
  f.setLayoutManager(new FreeformLayout());
  f.setBorder(new MarginBorder(5));
  return f;
}
View Full Code Here

* FlowPage containing a TextFlow with the style WORD_WRAP_SOFT.
*
* @param borderSize the size of the MarginBorder
*/
public StickyNoteFigure(int borderSize) {
  setBorder(new MarginBorder(borderSize));
  FlowPage flowPage = new FlowPage();

  textFlow = new TextFlow();

  textFlow.setLayoutManager(new ParagraphTextLayout(textFlow,
View Full Code Here

      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

  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

    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

    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

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.