Changeset 17090 in josm for trunk/src/org/openstreetmap/josm/gui/MapViewState.java
- Timestamp:
- 2020-10-07T07:46:55+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapViewState.java
r16919 r17090 132 132 } 133 133 134 private static Point findTopLeftInWindow(JComponent position) { 134 /** 135 * This is visible for JMockit. 136 * 137 * @param position The component to get the top left position of its window 138 * @return the top left point in window 139 */ 140 static Point findTopLeftInWindow(JComponent position) { 135 141 Point result = new Point(); 136 142 // better than using swing utils, since this allows us to use the method if no screen is present. … … 144 150 } 145 151 146 private static Point findTopLeftOnScreen(JComponent position) { 152 /** 153 * This is visible for JMockit. 154 * 155 * @param position The component to get the top left position of its screen 156 * @return the top left point on screen 157 */ 158 static Point findTopLeftOnScreen(JComponent position) { 147 159 try { 148 160 return position.getLocationOnScreen();
Note:
See TracChangeset
for help on using the changeset viewer.
