~ubuntu-branches/ubuntu/vivid/electric/vivid

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/dialogs/PromptAt.java

  • Committer: Package Import Robot
  • Author(s): Markus Koschany
  • Date: 2014-07-08 21:54:23 UTC
  • mfrom: (1.1.6) (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20140708215423-4zrgsca1e28tzcoc
Tags: 9.05+dfsg-1
* Imported Upstream version 9.05+dfsg.
* Add signing-key.pgp and check for valid upstream tarballs with uscan's
  pgpsigurlmangle feature.
* Move the package to Git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 */
24
24
package com.sun.electric.tool.user.dialogs;
25
25
 
 
26
import com.sun.electric.database.geometry.ScreenPoint;
26
27
import com.sun.electric.database.topology.NodeInst;
27
28
import com.sun.electric.database.variable.EditWindow_;
28
29
import com.sun.electric.util.TextUtils;
407
408
 
408
409
                // now make the dialog appear over a node
409
410
                Point ew = wnd.getScreenLocationOfCorner();
410
 
                Point locInWnd = wnd.databaseToScreen(ni.getAnchorCenterX(), ni.getAnchorCenterY());
 
411
                ScreenPoint locInWnd = wnd.databaseToScreen(ni.getAnchorCenterX(), ni.getAnchorCenterY());
411
412
                Point textfield = centerIt.getLocation();
412
413
                Dimension textSize = centerIt.getSize();
413
 
                setLocation(locInWnd.x+ew.x-(textfield.x+textSize.width/2), locInWnd.y+ew.y-(textfield.y+textSize.height/2+20));
 
414
                setLocation(locInWnd.getIntX()+ew.x-(textfield.x+textSize.width/2),
 
415
                        locInWnd.getIntY()+ew.y-(textfield.y+textSize.height/2+20));
414
416
        }
415
417
 
416
418
        /**