Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.GridData


public abstract class Shape extends Figure {

  public Shape() {
    GridLayout layout = new GridLayout(1, false);
    super.setLayoutManager(layout);
    add(new ImageFigure(getShapeImage()), new GridData(SWT.BEGINNING, SWT.BEGINNING, false, false, 1, 1));
  }
View Full Code Here


  public void setLayoutManager(LayoutManager manager) {
  }

  @Override
  public void add(IFigure figure, Object constraint, int index) {
    constraint = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
    super.add(figure, constraint, index);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.draw2d.GridData

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.