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
23 * questions.
24 */
25
26 package sun.lwawt.macosx;
27
28 import java.awt.Font;
29 import java.awt.FontMetrics;
30 import java.awt.Graphics;
31 import java.awt.GraphicsDevice;
32 import java.awt.Insets;
33 import java.awt.MenuBar;
34 import java.awt.Point;
35 import java.awt.Window;
36 import java.awt.event.FocusEvent.Cause;
37 import sun.java2d.SurfaceData;
38 import sun.lwawt.LWWindowPeer;
39 import sun.lwawt.PlatformWindow;
40
41 public class CViewPlatformEmbeddedFrame implements PlatformWindow {
42
43 private CPlatformView view;
44 private LWWindowPeer peer;
45 private CViewEmbeddedFrame target;
46 private CPlatformResponder responder;
47
48 @Override // PlatformWindow
49 public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
50 this.peer = peer;
154
155 @Override
156 public boolean requestWindowFocus() {
157 return true;
158 }
159
160 @Override
161 public boolean isActive() {
162 return target.isParentWindowActive();
163 }
164
165 @Override
166 public void setResizable(boolean resizable) {
167 }
168
169 @Override
170 public void setSizeConstraints(int minW, int minH, int maxW, int maxH) {
171 }
172
173 @Override
174 public Graphics transformGraphics(Graphics g) {
175 return g;
176 }
177
178 @Override
179 public void updateIconImages() {
180 }
181
182 @Override
183 public void setOpacity(float opacity) {
184 }
185
186 @Override
187 public void setOpaque(boolean isOpaque) {
188 }
189
190 @Override
191 public void enterFullScreenMode() {
192 }
193
194 @Override
195 public void exitFullScreenMode() {
196 }
197
198 @Override
|
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
23 * questions.
24 */
25
26 package sun.lwawt.macosx;
27
28 import java.awt.Font;
29 import java.awt.FontMetrics;
30 import java.awt.GraphicsDevice;
31 import java.awt.Insets;
32 import java.awt.MenuBar;
33 import java.awt.Point;
34 import java.awt.Window;
35 import java.awt.event.FocusEvent.Cause;
36 import sun.java2d.SurfaceData;
37 import sun.lwawt.LWWindowPeer;
38 import sun.lwawt.PlatformWindow;
39
40 public class CViewPlatformEmbeddedFrame implements PlatformWindow {
41
42 private CPlatformView view;
43 private LWWindowPeer peer;
44 private CViewEmbeddedFrame target;
45 private CPlatformResponder responder;
46
47 @Override // PlatformWindow
48 public void initialize(Window target, final LWWindowPeer peer, PlatformWindow owner) {
49 this.peer = peer;
153
154 @Override
155 public boolean requestWindowFocus() {
156 return true;
157 }
158
159 @Override
160 public boolean isActive() {
161 return target.isParentWindowActive();
162 }
163
164 @Override
165 public void setResizable(boolean resizable) {
166 }
167
168 @Override
169 public void setSizeConstraints(int minW, int minH, int maxW, int maxH) {
170 }
171
172 @Override
173 public void updateIconImages() {
174 }
175
176 @Override
177 public void setOpacity(float opacity) {
178 }
179
180 @Override
181 public void setOpaque(boolean isOpaque) {
182 }
183
184 @Override
185 public void enterFullScreenMode() {
186 }
187
188 @Override
189 public void exitFullScreenMode() {
190 }
191
192 @Override
|