Package org.eclipse.draw2d

Examples of org.eclipse.draw2d.GridData


    protected void addSwimlaneLabel() {
        swimlaneLabel = new TextFlow();
        FlowPage fp = new FlowPage();
        fp.setHorizontalAligment(PositionConstants.CENTER);
        fp.add(swimlaneLabel);
        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        add(fp, data);
    }
View Full Code Here


        fp.setHorizontalAligment(PositionConstants.CENTER);
        fp.add(label);

        figure.add(fp, FlowLayout.ALIGN_CENTER);

        GridData data = new GridData(GridData.FILL_BOTH);
        add(figure, data);
    }
View Full Code Here

        add(figure, data);
    }
   
    protected void addActionsContainer() {
        actionsContainer = new ActionsContainer();
        add(actionsContainer, new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END));
    }
View Full Code Here

        Ellipse outer = new Ellipse();
        outer.setSize(22, 22);
        outer.setOutline(false);
        outer.add(ellipse);

        add(outer, new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    }
View Full Code Here

        Ellipse outer = new Ellipse();
        outer.setSize(22, 22);
        outer.setOutline(false);
        outer.add(ellipse);

        add(outer, new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
    }
View Full Code Here

    shape.setBackgroundColor(color);
    shape.setDimension(new Dimension(dimension.width, dimension.height));

    // Adds shape to this, and label to shape.
    add(shape, new Rectangle(0, 0, -1, -1));
    GridData data = new GridData(SWT.CENTER, SWT.CENTER, true, true);
    data.horizontalSpan = 2;
    shape.add(labelId, data);
  }
View Full Code Here

   */
  private void updatePortLabel(Entry<String, Label> entry,
      int horizontalAlignment, int horizontalSpan) {
    Label label = new Label(entry.getKey());
    entry.setValue(label);
    GridData data = new GridData(horizontalAlignment, SWT.CENTER, false,
        false);
    data.horizontalSpan = horizontalSpan;
    shape.add(label, data);
  }
View Full Code Here

        GridLayout layout = new GridLayout();
        control = new Composite(cell, getStyle());
        control.setLayout(layout);

        Text text =  new Text(control, SWT.MULTI | SWT.WRAP);
        GridData data = new GridData();
        data.heightHint = 200;
        text.setLayoutData(data);

        Object value = getValue();
        if (value != null)
View Full Code Here

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.