src/java.desktop/share/classes/java/awt/Window.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 52248 2e330da7cbf4
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     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
   369      * @serial
   370      * @serial
   370      * @see #getShape()
   371      * @see #getShape()
   371      * @see #setShape(Shape)
   372      * @see #setShape(Shape)
   372      * @since 1.7
   373      * @since 1.7
   373      */
   374      */
       
   375     @SuppressWarnings("serial") // Not statically typed as Serializable
   374     private Shape shape = null;
   376     private Shape shape = null;
   375 
   377 
   376     private static final String base = "win";
   378     private static final String base = "win";
   377     private static int nameCounter = 0;
   379     private static int nameCounter = 0;
   378 
   380