Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.FreeformViewport


  private Animator animator;
 
  public void createPartControl(final Composite parent) {
    FigureCanvas _figureCanvas = new FigureCanvas(parent, SWT.DOUBLE_BUFFERED);
    this.canvas = _figureCanvas;
    FreeformViewport _freeformViewport = new FreeformViewport();
    this.canvas.setViewport(_freeformViewport);
    this.canvas.setBackground(ColorConstants.white);
    final FreeformLayeredPane pane = new FreeformLayeredPane();
    Font _font = parent.getFont();
    pane.setFont(_font);
View Full Code Here


        FlowLayout flowLayout = new FlowLayout();
        flowLayout.setMajorAlignment(FlowLayout.ALIGN_CENTER);
        panel.setLayoutManager(flowLayout);
        panel.add(label);
        add(panel);
        scrollpane.setViewport(new FreeformViewport());
        scrollpane.setContents(pane);
    }
View Full Code Here

  ScrollPane scrollpane = new ScrollPane();
  pane = new FreeformLayer();
  pane.setLayoutManager(new FreeformLayout());
  setLayoutManager(new StackLayout());
  add(scrollpane);
  scrollpane.setViewport(new FreeformViewport());
  scrollpane.setContents(pane);

  createConnectionAnchors();
  setBackgroundColor(ColorConstants.listBackground);
  setOpaque(true);
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.FreeformViewport

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.