1 /*
2 * Copyright (c) 2000, 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
23 * questions.
24 */
25
26 package sun.awt;
27
28 import java.awt.AWTException;
29 import java.awt.BufferCapabilities;
30 import java.awt.Color;
31 import java.awt.Component;
32 import java.awt.Cursor;
33 import java.awt.Dimension;
34 import java.awt.Font;
35 import java.awt.FontMetrics;
36 import java.awt.Graphics;
37 import java.awt.GraphicsConfiguration;
38 import java.awt.Image;
39 import java.awt.Insets;
40 import java.awt.MenuBar;
41 import java.awt.Point;
42 import java.awt.Event;
43 import java.awt.event.PaintEvent;
44 import java.awt.image.ColorModel;
45 import java.awt.image.ImageObserver;
46 import java.awt.image.ImageProducer;
47 import java.awt.image.VolatileImage;
48 import java.awt.peer.CanvasPeer;
49 import java.awt.peer.LightweightPeer;
50 import java.awt.peer.PanelPeer;
51 import java.awt.peer.ComponentPeer;
52 import java.awt.peer.ContainerPeer;
53 import java.awt.Rectangle;
54 import sun.java2d.pipe.Region;
55
56
57 /**
58 * Implements the LightweightPeer interface for use in lightweight components
59 * that have no native window associated with them. This gets created by
60 * default in Component so that Component and Container can be directly
161 // no native code
162 }
163
164 public void setForeground(Color c) {
165 }
166
167 public void setBackground(Color c) {
168 }
169
170 public void setFont(Font f) {
171 }
172
173 public void updateCursorImmediately() {
174 }
175
176 public void setCursor(Cursor cursor) {
177 }
178
179 public boolean requestFocus
180 (Component lightweightChild, boolean temporary,
181 boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause) {
182 return false;
183 }
184
185 public Image createImage(ImageProducer producer) {
186 return null;
187 }
188
189 public Image createImage(int width, int height) {
190 return null;
191 }
192
193 public boolean prepareImage(Image img, int w, int h, ImageObserver o) {
194 return false;
195 }
196
197 public int checkImage(Image img, int w, int h, ImageObserver o) {
198 return 0;
199 }
200
201 public Dimension preferredSize() {
|
1 /*
2 * Copyright (c) 2000, 2015, 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
23 * questions.
24 */
25
26 package sun.awt;
27
28 import java.awt.AWTException;
29 import java.awt.BufferCapabilities;
30 import java.awt.Color;
31 import java.awt.Component;
32 import java.awt.Cursor;
33 import java.awt.Dimension;
34 import java.awt.Font;
35 import java.awt.FontMetrics;
36 import java.awt.Graphics;
37 import java.awt.GraphicsConfiguration;
38 import java.awt.Image;
39 import java.awt.Insets;
40 import java.awt.event.FocusEvent.Cause;
41 import java.awt.Point;
42 import java.awt.Event;
43 import java.awt.event.PaintEvent;
44 import java.awt.image.ColorModel;
45 import java.awt.image.ImageObserver;
46 import java.awt.image.ImageProducer;
47 import java.awt.image.VolatileImage;
48 import java.awt.peer.CanvasPeer;
49 import java.awt.peer.LightweightPeer;
50 import java.awt.peer.PanelPeer;
51 import java.awt.peer.ComponentPeer;
52 import java.awt.peer.ContainerPeer;
53 import java.awt.Rectangle;
54 import sun.java2d.pipe.Region;
55
56
57 /**
58 * Implements the LightweightPeer interface for use in lightweight components
59 * that have no native window associated with them. This gets created by
60 * default in Component so that Component and Container can be directly
161 // no native code
162 }
163
164 public void setForeground(Color c) {
165 }
166
167 public void setBackground(Color c) {
168 }
169
170 public void setFont(Font f) {
171 }
172
173 public void updateCursorImmediately() {
174 }
175
176 public void setCursor(Cursor cursor) {
177 }
178
179 public boolean requestFocus
180 (Component lightweightChild, boolean temporary,
181 boolean focusedWindowChangeAllowed, long time, Cause cause) {
182 return false;
183 }
184
185 public Image createImage(ImageProducer producer) {
186 return null;
187 }
188
189 public Image createImage(int width, int height) {
190 return null;
191 }
192
193 public boolean prepareImage(Image img, int w, int h, ImageObserver o) {
194 return false;
195 }
196
197 public int checkImage(Image img, int w, int h, ImageObserver o) {
198 return 0;
199 }
200
201 public Dimension preferredSize() {
|