src/macosx/classes/sun/lwawt/PlatformWindow.java

Print this page


   1 /*
   2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 101      * Creates a new image to serve as a back buffer.
 102      */
 103     public Image createBackBuffer();
 104 
 105     /*
 106      * Move the given part of the back buffer to the front buffer.
 107      */
 108     public void flip(int x1, int y1, int x2, int y2,
 109                      BufferCapabilities.FlipContents flipAction);
 110 
 111     public void setModalBlocked(boolean blocked);
 112 
 113     public void toFront();
 114 
 115     public void toBack();
 116 
 117     public void setMenuBar(MenuBar mb);
 118 
 119     public void setAlwaysOnTop(boolean value);
 120 


 121     public void updateFocusableWindowState();
 122 
 123     public boolean rejectFocusRequest(CausedFocusEvent.Cause cause);
 124 
 125     public boolean requestWindowFocus();
 126 
 127     /*
 128      * Returns true only when called on a frame/dialog when it's natively focused.
 129      */
 130     public boolean isActive();
 131 
 132     public void setResizable(boolean resizable);
 133 
 134     /**
 135      * Applies the minimum and maximum size to the platform window.
 136      */
 137     public void setSizeConstraints(int minW, int minH, int maxW, int maxH);
 138 
 139     /**
 140      * Transforms the given Graphics object according to the native


   1 /*
   2  * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 101      * Creates a new image to serve as a back buffer.
 102      */
 103     public Image createBackBuffer();
 104 
 105     /*
 106      * Move the given part of the back buffer to the front buffer.
 107      */
 108     public void flip(int x1, int y1, int x2, int y2,
 109                      BufferCapabilities.FlipContents flipAction);
 110 
 111     public void setModalBlocked(boolean blocked);
 112 
 113     public void toFront();
 114 
 115     public void toBack();
 116 
 117     public void setMenuBar(MenuBar mb);
 118 
 119     public void setAlwaysOnTop(boolean value);
 120 
 121     public PlatformWindow getTopmostPlatformWindowUnderMouse();
 122 
 123     public void updateFocusableWindowState();
 124 
 125     public boolean rejectFocusRequest(CausedFocusEvent.Cause cause);
 126 
 127     public boolean requestWindowFocus();
 128 
 129     /*
 130      * Returns true only when called on a frame/dialog when it's natively focused.
 131      */
 132     public boolean isActive();
 133 
 134     public void setResizable(boolean resizable);
 135 
 136     /**
 137      * Applies the minimum and maximum size to the platform window.
 138      */
 139     public void setSizeConstraints(int minW, int minH, int maxW, int maxH);
 140 
 141     /**
 142      * Transforms the given Graphics object according to the native