Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.computeSize()


        Composite parent = new Composite(scrolledComposite, SWT.NONE);
        parent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
        parent.setLayout(new GridLayout(1, true));

        org.eclipse.swt.graphics.Point point = parent.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        parent.setSize(point);
        scrolledComposite.setMinSize(280, 575);
        scrolledComposite.setContent(parent);

        Group boundsGroup = new Group(parent, SWT.NONE);
View Full Code Here


        forgroundAlphaLabel.setText(Messages.getString("LegendGraphicStyleConfigurator.foregroundalpha")); //$NON-NLS-1$
        forgroundAlphaText = new Text(propertiesGroup, SWT.BORDER);
        forgroundAlphaText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));

        c.layout();
        Point size = c.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        c.setSize(size);
        scrollComposite.setContent(c);

        titleText.addModifyListener(this);
        xposText.addModifyListener(this);
View Full Code Here

        /*
         * layout
         */
        c.layout();
        Point size = c.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        c.setSize(size);
        scrollComposite.setContent(c);
    }

    @Override
View Full Code Here

    public void resizeScrolledComposite() {
        Point currentTabSize = new Point(0, 0);
        if (currentTab != null) {
            Composite sizeReference = (Composite) tabToComposite.get(currentTab);
            if (sizeReference != null) {
                currentTabSize = sizeReference.computeSize(SWT.DEFAULT, SWT.DEFAULT);
            }
        }
        tabbedPropertyComposite.getScrolledComposite().setMinSize(currentTabSize);

        ScrollBar verticalScrollBar = tabbedPropertyComposite.getScrolledComposite()
View Full Code Here

        backgroundColourLabel.setLayoutData(layoutData);
        backgroundColourLabel.setText(Messages.LegendGraphicStyleConfigurator_background_colour);
        backgroundColour = new ColorEditor(composite);
       
        composite.layout();
        Point size = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        composite.setSize(size);
        scrollComposite.setContent(composite);
        verticalMargin.addModifyListener(this);
        horizontalMargin.addModifyListener(this);
View Full Code Here

        forgroundAlphaText = new Text(propertiesGroup, SWT.BORDER);
        forgroundAlphaText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL
                | GridData.GRAB_HORIZONTAL));

        c.layout();
        Point size = c.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        c.setSize(size);
        scrollComposite.setContent(c);

        xposText.addModifyListener(this);
        yposText.addModifyListener(this);
View Full Code Here

    return columnLabelTexts;
  }

  private void fixSize() {
    Composite scrolledArea = this.scrolledAreaGrid.getActualParent();
    this.scrollingArea.setMinSize(scrolledArea.computeSize(SWT.DEFAULT, SWT.DEFAULT));
    scrolledArea.pack();
  }

  protected Composite createHeaderArea() {
    Composite headerArea = new Composite(this, SWT.NONE);
View Full Code Here

 
  private Composite createPlatformLabelContainer() {
    Composite container = new Composite(this, SWT.NONE);
    container.setLayoutData(createPlatformLabelContainerLayoutData());
    container.setLayout(createContainerLayout());
    container.setSize(container.computeSize(SWT.DEFAULT, SWT.DEFAULT));
   
    return container;
  }
 
  private GridData createPlatformLabelContainerLayoutData() {
View Full Code Here

       * TODO: This is totally a hack.  Figure out how to trigger resize
       * events manually!
       */
      if (parent instanceof ScrolledComposite) {
        ScrolledComposite scrolledParent = (ScrolledComposite)parent;
        scrolledParent.setMinSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT));
      } else {
        parent.setSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT));
      }
    }
  }
View Full Code Here

       */
      if (parent instanceof ScrolledComposite) {
        ScrolledComposite scrolledParent = (ScrolledComposite)parent;
        scrolledParent.setMinSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT));
      } else {
        parent.setSize(parent.computeSize(SWT.DEFAULT, SWT.DEFAULT));
      }
    }
  }
 
  public void setSize(Point size) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.