Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.RowData


          item = table.getItem(i);
          item.setText("Item " + i);
        }
      }
    });
    table.setLayoutData(new RowData(200, 200));
    long t1 = System.currentTimeMillis();
    table.setItemCount(COUNT);
    long t2 = System.currentTimeMillis();
    System.out.println("Items: " + COUNT + ", Time: " + (t2 - t1) + " (ms) [page=" + PAGE_SIZE
        + "]");
View Full Code Here


        subpart.setLayout( across );
       
        Label label = new Label( subpart, SWT.NONE );
        label.setText(tag);
        label.setAlignment( SWT.RIGHT );
        RowData data = new RowData();
        data.width = 40;
        data.height = 10;
        label.setLayoutData( data );
               
        return subpart;
View Full Code Here

        subpart.setLayout(across);

        Label label = new Label(subpart, SWT.NONE);
        label.setText(tag);
        label.setAlignment(SWT.RIGHT);
        RowData data = new RowData();
        data.width = 40;
        data.height = 10;
        label.setLayoutData(data);

        return subpart;
View Full Code Here

        subpart.setLayout( across );
       
        Label label = new Label( subpart, SWT.NONE );
        label.setText(tag);
        label.setAlignment( SWT.RIGHT );
        RowData data = new RowData();
        data.width = 40;
        data.height = 10;
        label.setLayoutData( data );
               
        return subpart;
View Full Code Here

        subpart.setLayout( across );
       
        Label labell = new Label( subpart, SWT.LEFT );
        labell.setText( label )
       
        RowData data = new RowData();
        data.width = 40;
        //check to see if width is not enough space
        GC gc = new GC(parent.getParent());
        gc.setFont(parent.getParent().getFont());
        FontMetrics fontMetrics = gc.getFontMetrics();
View Full Code Here

        subpart.setLayout(across);

        Label label = new Label(subpart, SWT.NONE);
        label.setText(tag);
        label.setAlignment(SWT.RIGHT);
        RowData data = new RowData();
        data.width = 40;
        data.height = 10;
        label.setLayoutData(data);

        return subpart;
View Full Code Here

   * </ul>
   *
   * @return a new GridDataFactory instance
   */
  public static RowDataFactory swtDefaults() {
    return new RowDataFactory(new RowData());
  }
View Full Code Here

   * @param data
   *            RowData to copy
   * @return a copy of the argument
   */
  public static RowData copyData(RowData data) {
    RowData newData = new RowData(data.width, data.height);
    newData.exclude = data.exclude;

    return newData;
  }
View Full Code Here

 
  public ShapeIconControl(Composite cmp, ShapeModel model) {
    super(cmp, SWT.BORDER_SOLID);

    this.shape = model.clone();
    this.setLayoutData(new RowData(iconSize, iconSize));
   
    this.addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent e) {
        //ctrl.setSize(iconSize, iconSize);
        Rectangle clientArea = getClientArea();
View Full Code Here

  // private methods

  private Canvas getControl(Composite cmp, final ShapeModel shape) {   
     
    final Canvas ctrl = new Canvas(cmp, SWT.BORDER_SOLID);
    ctrl.setLayoutData(new RowData(iconSize, iconSize));
   
    //ctrl.pack();
    //Point size = ctrl.computeSize (iconSize, iconSize);
    //ctrl.setSize (size.x, size.y);
   
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.RowData

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.