1 /* |
1 /* |
2 * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
94 * corner of the primary physical screen. Depending on the location of |
94 * corner of the primary physical screen. Depending on the location of |
95 * the primary screen in the virtual device, negative coordinates are |
95 * the primary screen in the virtual device, negative coordinates are |
96 * possible, as shown in the following figure. |
96 * possible, as shown in the following figure. |
97 * <p> |
97 * <p> |
98 * <img src="doc-files/MultiScreen.gif" |
98 * <img src="doc-files/MultiScreen.gif" |
99 * alt="Diagram shows virtual device containing 4 physical screens. Primary physical screen shows coords (0,0), other screen shows (-80,-100)." |
99 * alt="Diagram shows virtual device containing 4 physical screens. Primary |
100 * style="float:center; margin: 7px 10px;"> |
100 * physical screen shows coords (0,0), other screen shows (-80,-100)." |
|
101 * style="margin: 7px 10px;"> |
101 * <p> |
102 * <p> |
102 * In such an environment, when calling {@code setLocation}, |
103 * In such an environment, when calling {@code setLocation}, |
103 * you must pass a virtual coordinate to this method. Similarly, |
104 * you must pass a virtual coordinate to this method. Similarly, |
104 * calling {@code getLocationOnScreen} on a {@code Window} returns |
105 * calling {@code getLocationOnScreen} on a {@code Window} returns |
105 * virtual device coordinates. Call the {@code getBounds} method |
106 * virtual device coordinates. Call the {@code getBounds} method |