< prev index next >
src/java.desktop/share/classes/sun/awt/NullComponentPeer.java
Print this page
rev 57801 : XXXXXXX: Component.xxxImage cleanup
Reviewed-by: XXX
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -29,32 +29,30 @@
import java.awt.BufferCapabilities;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
+import java.awt.Event;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.GraphicsConfiguration;
import java.awt.Image;
import java.awt.Insets;
-import java.awt.event.FocusEvent.Cause;
import java.awt.Point;
-import java.awt.Event;
+import java.awt.Rectangle;
+import java.awt.event.FocusEvent.Cause;
import java.awt.event.PaintEvent;
import java.awt.image.ColorModel;
-import java.awt.image.ImageObserver;
-import java.awt.image.ImageProducer;
import java.awt.image.VolatileImage;
import java.awt.peer.CanvasPeer;
-import java.awt.peer.LightweightPeer;
-import java.awt.peer.PanelPeer;
import java.awt.peer.ComponentPeer;
import java.awt.peer.ContainerPeer;
-import java.awt.Rectangle;
-import sun.java2d.pipe.Region;
+import java.awt.peer.LightweightPeer;
+import java.awt.peer.PanelPeer;
+import sun.java2d.pipe.Region;
/**
* Implements the LightweightPeer interface for use in lightweight components
* that have no native window associated with them. This gets created by
* default in Component so that Component and Container can be directly
@@ -72,11 +70,10 @@
* its own file.
*
* @author Timothy Prinzing
* @author Michael Martak
*/
-
public class NullComponentPeer implements LightweightPeer,
CanvasPeer, PanelPeer {
public boolean isObscured() {
return false;
@@ -181,26 +178,14 @@
(Component lightweightChild, boolean temporary,
boolean focusedWindowChangeAllowed, long time, Cause cause) {
return false;
}
- public Image createImage(ImageProducer producer) {
- return null;
- }
-
public Image createImage(int width, int height) {
return null;
}
- public boolean prepareImage(Image img, int w, int h, ImageObserver o) {
- return false;
- }
-
- public int checkImage(Image img, int w, int h, ImageObserver o) {
- return 0;
- }
-
public Dimension preferredSize() {
return getPreferredSize();
}
public Dimension minimumSize() {
< prev index next >