Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Layout


   *          the attributes of the layout
   * @return the new layout
   */
  public Object addLayout( Object cont, int type, Hashtable attribs )
  {
    Layout lm = null;
    if ( type != XPage.BOX_LAYOUT )
      lm = (Layout)addLayout( cont, type );
    if ( attribs != null ) {
      switch ( type ) {
      case XPage.BORDER_LAYOUT:
View Full Code Here


    addResizeListener( facade );
    return facade;
  }

  private void addLayoutDataWithExclude( Composite facade ) {
    Layout layout = composite.getLayout();
    if( layout instanceof RowLayout ) {
      addExcludedRowData( facade );
    } else if( layout instanceof GridLayout ) {
      addExcludedGridData( facade );
    } else {
View Full Code Here

    addResizeListener( facade );
    return facade;
  }

  private void addLayoutDataWithExclude( Composite facade ) {
    Layout layout = composite.getLayout();
    if( layout instanceof RowLayout ) {
      addExcludedRowData( facade );
    } else if( layout instanceof GridLayout ) {
      addExcludedGridData( facade );
    } else {
View Full Code Here

            Scrollable scrollable = (Scrollable) control;

            if (scrollable instanceof Composite) {
                Composite composite = (Composite) control;

                Layout theLayout = composite.getLayout();
                if (theLayout instanceof GridLayout) {
                    boolean growsHorizontally = false;
                    boolean growsVertically = false;

                    Control[] children = composite.getChildren();
View Full Code Here

        nonDisposedImages.toArray(array);
        newShell.setImages(array);
      }
    }

    Layout layout = getLayout();
    if (layout != null) {
      newShell.setLayout(layout);
    }
  }
View Full Code Here

      }
    });

    // sets the layout and size to account for the BORDER_MARGIN between
    // the border drawn around the container and the decorated field.
    setLayout(new Layout() {
      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.swt.widgets.Layout#layout(org.eclipse.swt.widgets.Composite,
       *      boolean)
View Full Code Here

    addResizeListener( facade );
    return facade;
  }

  private void addLayoutDataWithExclude( Composite facade ) {
    Layout layout = composite.getLayout();
    if( layout instanceof RowLayout ) {
      addExcludedRowData( facade );
    } else if( layout instanceof GridLayout ) {
      addExcludedGridData( facade );
    } else {
View Full Code Here

   * @since 3.3
   */
  public static void createVerticalSpacer(Composite parent, int numlines) {
    Label lbl = new Label(parent, SWT.NONE);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    Layout layout = parent.getLayout();
    if (layout instanceof GridLayout) {
      gd.horizontalSpan = ((GridLayout) parent.getLayout()).numColumns;
    }
    gd.heightHint = numlines;
    lbl.setLayoutData(gd);
View Full Code Here

   * @since 3.3
   */
  public static void createVerticalSpacer(Composite parent, int numlines) {
    Label lbl = new Label(parent, SWT.NONE);
    GridData gd = new GridData(GridData.FILL_HORIZONTAL);
    Layout layout = parent.getLayout();
    if (layout instanceof GridLayout) {
      gd.horizontalSpan = ((GridLayout) parent.getLayout()).numColumns;
    }
    gd.heightHint = numlines;
    lbl.setLayoutData(gd);
View Full Code Here

    private void screen3D(CTabFolder tabs, CTabItem item) {
        // Create the actual graphpanel
        Composite body = new Composite(tabs, SWT.NONE);
        item.setControl(body);
        Layout opengllayout = new FillLayout();
        body.setLayout(opengllayout);
        SWTOpenGLJOGLNanoGraphPanel joglpanel = new SWTOpenGLJOGLNanoGraphPanel(body);
        joglpanel.getGraphicsAdapter().setSphereRadius(AtomRenderer.DIAMETER / 100);
        joglpanel.setNanoGraph(graph);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Layout

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.