Examples of computeTrim()


Examples of org.eclipse.swt.widgets.Shell.computeTrim()

    Rectangle tableBounds = table.getBounds();
    tableBounds.height = Math.min(tableBounds.height, table.getItemHeight()
        * MAX_ITEMS);
    table.setBounds(tableBounds);

    dialog.setBounds(dialog.computeTrim(tableBounds.x, tableBounds.y,
        tableBounds.width, tableBounds.height));

    tc.setWidth(table.getClientArea().width);
    table.setFocus();
    table.addFocusListener(new FocusListener() {
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.computeTrim()

        shell.layout();
        if (size.x == 0 && size.y == 0) {
            inst.pack();
            shell.pack();
        } else {
            Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
            shell.setSize(shellBounds.width, shellBounds.height);
        }
        shell.open();

        while (!shell.isDisposed()) {
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.computeTrim()

      shell.layout();
      if (size.x == 0 && size.y == 0) {
        inst.pack();
        shell.pack();
      } else {
        Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
        shell.setSize(shellBounds.width, shellBounds.height);
      }
      shell.open();
      while (!shell.isDisposed()) {
        if (!display.readAndDispatch())
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.computeTrim()

        inst.pack();
        shell.pack();
      }
      else
      {
        Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
        shell.setSize(shellBounds.width, shellBounds.height);
      }
      shell.open();
      while (!shell.isDisposed())
      {
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.computeTrim()

  @Override
  protected void buttonPressed(int buttonId) {
    if (buttonId == DETAIL_BUTTON) {
      final Shell shell = getShell();
      Rectangle trim = shell.computeTrim(0, 0, 0, 0);
      int xOffset = 0;
      int xDelta = -trim.x + 3;
      int yOffset = 0;
      int yDelta = -trim.y - 3;
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.computeTrim()

    tableComposite.addControlListener(new ControlAdapter() {
      public void controlResized(ControlEvent e) {
        Rectangle area = comp.getClientArea();
        Point size = tref.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        ScrollBar vBar = tref.getVerticalBar();
        int width = area.width - tref.computeTrim(0,0,0,0).width - 2;
        if (size.y > area.height + tref.getHeaderHeight()) {
          Point vBarSize = vBar.getSize();
          width -= vBarSize.x;
        }
        Point oldSize = tref.getSize();
View Full Code Here

Examples of org.eclipse.swt.widgets.Text.computeTrim()

    public void relocate(CellEditor celleditor) {
        Text text = (Text) celleditor.getControl();
        Rectangle rect = label.getClientArea().getCopy();
        label.translateToAbsolute(rect);
        org.eclipse.swt.graphics.Rectangle trim = text.computeTrim(0, 0, 0, 0);
        rect.translate(trim.x, trim.y);
        rect.width += trim.width;
        rect.height += trim.height;
        text.setBounds(rect.x, rect.y, rect.width, rect.height);
    }
View Full Code Here

Examples of org.eclipse.swt.widgets.Text.computeTrim()

public void relocate(CellEditor celleditor) {
  Text text = (Text)celleditor.getControl();
  Rectangle rect = stickyNote.getClientArea();
  stickyNote.translateToAbsolute(rect);
  org.eclipse.swt.graphics.Rectangle trim = text.computeTrim(0, 0, 0, 0);
  rect.translate(trim.x, trim.y);
  rect.width += trim.width;
  rect.height += trim.height;
  text.setBounds(rect.x, rect.y, rect.width, rect.height);
}
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.