Examples of toDisplay()


Examples of net.sourceforge.jpowergraph.swt.SWTJGraphPane.toDisplay()

                tipShell = new Shell(graphPane.getShell(), SWT.ON_TOP | SWT.TOOL);
                tipShell.setBackground(background);
                boolean okay = toolTipListener.addNodeToolTipItems(node, tipShell, background);
                if (okay) {
                    tipShell.pack();
                    setTooltipLocation(tipShell, graphPane.toDisplay(point.x, point.y));
                    tipShell.setVisible(true);
                }
            }
        }
        else if (node == null) {
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.toDisplay()

      location.x= 0;

      if (fVerticalRuler instanceof IVerticalRulerExtension)
        ((IVerticalRulerExtension) fVerticalRuler).setLocationOfLastMouseButtonActivity(location.x, location.y);

      location= text.toDisplay(location);
      fRulerContextMenu.setLocation(location.x, location.y);
      fRulerContextMenu.setVisible(true);
    }
  }
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.toDisplay()

    Point p= text.getLocationAtOffset(selection.x);
    p.x -= fProposalShell.getBorderWidth();
    if (p.x < 0) p.x= 0;
    if (p.y < 0) p.y= 0;
    p= new Point(p.x, p.y + text.getLineHeight(selection.x));
    p= text.toDisplay(p);
    return p;
  }

  /**
   *Displays this popup and install the additional info controller, so that additional info
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.toDisplay()

    }

    protected Point getAboveLocation(Shell shell, int offset) {
      StyledText text= fViewer.getTextWidget();
      Point location= text.getLocationAtOffset(offset);
      location= text.toDisplay(location);

      Rectangle shellBounds= shell.getBounds();
      Rectangle displayBounds= shell.getDisplay().getClientArea();

      location.y=location.y - shellBounds.height;
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.toDisplay()

    protected Point getBelowLocation(Shell shell, int offset) {
      StyledText text= fViewer.getTextWidget();
      Point location= text.getLocationAtOffset(offset);
      if (location.x < 0) location.x= 0;
      if (location.y < 0) location.y= 0;
      location= text.toDisplay(location);

      Rectangle shellBounds= shell.getBounds();
      Rectangle displayBounds= shell.getDisplay().getClientArea();

      location.y= location.y + text.getLineHeight(offset);
View Full Code Here

Examples of org.eclipse.swt.custom.StyledText.toDisplay()

      location.x= 0;

      if (fVerticalRuler instanceof IVerticalRulerExtension)
        ((IVerticalRulerExtension) fVerticalRuler).setLocationOfLastMouseButtonActivity(location.x, location.y);

      location= text.toDisplay(location);
      fRulerContextMenu.setLocation(location.x, location.y);
      fRulerContextMenu.setVisible(true);
    }
  }
View Full Code Here

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

    addButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        Rectangle rect = addButton.getBounds();
        Point pt = new Point(rect.x, rect.y + rect.height);
        pt = addButton.toDisplay(pt);
        menu.setLocation(pt.x, pt.y);
        menu.setVisible(true);
      }
    });
View Full Code Here

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

                    calendar.setDate( date.getYear() + 1900,
                                      date.getMonth(),
                                      date.getDate() );

                    Point p2 = open.toDisplay( 0,
                                               0 );

                    int x = p2.x;
                    int y = p2.y + 20;
View Full Code Here

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

       
        /*
         * To get the absolute position of the opened dialog box. This will decide
         * the position of the hover.
         */
        Point absoluteShellPosition = descriptionButton.toDisplay(
            descriptionButton.getBounds().width, 0);
        setHoverLocation(descriptionShell, absoluteShellPosition);

        descriptionShell.open();
      } else {
View Full Code Here

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

                    calendar.setDate( date.getYear() + 1900,
                                      date.getMonth(),
                                      date.getDate() );

                    Point p2 = open.toDisplay( 0,
                                               0 );

                    int x = p2.x;
                    int y = p2.y + 20;
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.