Examples of toDisplay()


Examples of org.eclipse.swt.widgets.Control.toDisplay()

      fAllowMouseExit= true;

      Control subjectControl= getSubjectControl();
      // return a location that just overlaps the annotation on the bar
      if (anchor == AbstractInformationControlManager.ANCHOR_RIGHT)
        return subjectControl.toDisplay(subjectArea.x - 4, subjectArea.y - 2);
      else if (anchor == AbstractInformationControlManager.ANCHOR_LEFT)
        return subjectControl.toDisplay(subjectArea.x + subjectArea.width - controlSize.x + 4, subjectArea.y - 2);
    }

    fAllowMouseExit= false;
View Full Code Here

Examples of org.eclipse.swt.widgets.CoolBar.toDisplay()

            } else if (data.isSeparator()) {
                chevronMenuManager.add(new Separator());
            }
        }
        Menu popup = chevronMenuManager.createContextMenu(coolBar);
        Point chevronPosition = coolBar.toDisplay(event.x, event.y);
        popup.setLocation(chevronPosition.x, chevronPosition.y);
        popup.setVisible(true);
    }

    /**
 
View Full Code Here

Examples of org.eclipse.swt.widgets.Group.toDisplay()

    }
    buttonAddKey.addSelectionListener(new SelectionAdapter() {

      public void widgetSelected(SelectionEvent selectionEvent) {
        Point buttonLocation = buttonAddKey.getLocation();
        buttonLocation = groupKeySequence.toDisplay(buttonLocation.x,
            buttonLocation.y);
        Point buttonSize = buttonAddKey.getSize();
        menuButtonAddKey.setLocation(buttonLocation.x, buttonLocation.y
            + buttonSize.y);
        menuButtonAddKey.setVisible(true);
View Full Code Here

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

        {
          Shell shell = display.getActiveShell();
          if (shell == null){ // happens on windows
            shell = display.getShells()[0];
          }
          Point point = shell.toDisplay(1, 1);
          bounds[0] = point.x;
          bounds[1] = point.y;
        }
      });
      DisplayUtils.doClick(display, bounds[0] + 5, bounds[1] + 5, false);
View Full Code Here

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

        table.addMouseMoveListener(new MouseMoveListener() {
            TableItem fLastItem = null;
            int lastY = 0;
            int itemHeightdiv4 = table.getItemHeight() / 4;
            int tableHeight = table.getBounds().height;
            Point tableLoc = table.toDisplay(0,0);
            int divCount = 0;
            public void mouseMove(MouseEvent e) {
                if (divCount == ignoreEventCount) {
          divCount = 0;
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.ToolBar.toDisplay()

        schemaSectionItemNew.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event event) {

                  Rectangle rect = schemaSectionItemNew.getBounds();
                  Point pt = new Point(rect.x, rect.y + rect.height);
                  pt = schemaSectionToolBar.toDisplay(pt);
                  menu.setLocation(pt.x, pt.y);
                  menu.setVisible(true);

              }
           }
View Full Code Here

Examples of org.eclipse.swt.widgets.ToolBar.toDisplay()

    addButton.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        if (event.detail == SWT.ARROW) {
          Rectangle rect = item.getBounds();
          Point pt = new Point(rect.x, rect.y + rect.height);
          pt = buttonBar.toDisplay(pt);
          conditionMenu.setLocation(pt.x, pt.y);
          conditionMenu.setVisible(true);
        } else
          onAdd(item);
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.ToolBar.toDisplay()

    addButton.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        if (event.detail == SWT.ARROW) {
          Rectangle rect = item.getBounds();
          Point pt = new Point(rect.x, rect.y + rect.height);
          pt = buttonBar.toDisplay(pt);
          conditionMenu.setLocation(pt.x, pt.y);
          conditionMenu.setVisible(true);
        } else
          onAdd(item);
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.ToolBar.toDisplay()

    addButton.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        if (event.detail == SWT.ARROW) {
          Rectangle rect = item.getBounds();
          Point pt = new Point(rect.x, rect.y + rect.height);
          pt = buttonBar.toDisplay(pt);
          actionMenu.setLocation(pt.x, pt.y);
          actionMenu.setVisible(true);
        } else
          onAdd(item);
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.ToolBar.toDisplay()

        {
            public void widgetSelected( SelectionEvent event )
            {
                Rectangle rect = leftMenuToolItem.getBounds();
                Point pt = new Point( rect.x, rect.y + rect.height );
                pt = leftToolBar.toDisplay( pt );
                leftMenu.setLocation( pt.x, pt.y );
                leftMenu.setVisible( true );
            }
        } );
        // Adding the 'Sorting...' MenuItem
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.