diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 20:53:01 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 20:53:01 +0000 |
commit | 99ec69335423899bbb2b0f87dd9cefe202cbd429 (patch) | |
tree | 8b6efec93909b885cb1e95928f4634e8c4bfb42a /libjava | |
parent | f9af8fcdeea9d824d03015eb08185804ab4f4eac (diff) | |
download | gcc-99ec69335423899bbb2b0f87dd9cefe202cbd429.tar.gz |
2003-06-27 Michael Koch <konqueror@gmx.de>
* java/awt/Window.java,
java/awt/font/GraphicAttribute.java,
java/awt/font/ImageGraphicAttribute.java,
java/awt/image/DataBufferByte.java,
java/awt/image/DataBufferInt.java,
java/awt/image/DataBufferUShort.java,
java/awt/image/DirectColorModel.java,
java/awt/image/PixelGrabber.java:
New versions from classpath.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68605 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 12 | ||||
-rw-r--r-- | libjava/java/awt/Window.java | 15 | ||||
-rw-r--r-- | libjava/java/awt/font/GraphicAttribute.java | 2 | ||||
-rw-r--r-- | libjava/java/awt/font/ImageGraphicAttribute.java | 2 | ||||
-rw-r--r-- | libjava/java/awt/image/DataBufferByte.java | 2 | ||||
-rw-r--r-- | libjava/java/awt/image/DataBufferInt.java | 2 | ||||
-rw-r--r-- | libjava/java/awt/image/DataBufferUShort.java | 2 | ||||
-rw-r--r-- | libjava/java/awt/image/DirectColorModel.java | 4 | ||||
-rw-r--r-- | libjava/java/awt/image/PixelGrabber.java | 8 |
9 files changed, 35 insertions, 14 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 571bc2a8663..9a28410eabf 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,17 @@ 2003-06-27 Michael Koch <konqueror@gmx.de> + * java/awt/Window.java, + java/awt/font/GraphicAttribute.java, + java/awt/font/ImageGraphicAttribute.java, + java/awt/image/DataBufferByte.java, + java/awt/image/DataBufferInt.java, + java/awt/image/DataBufferUShort.java, + java/awt/image/DirectColorModel.java, + java/awt/image/PixelGrabber.java: + New versions from classpath. + +2003-06-27 Michael Koch <konqueror@gmx.de> + * java/security/Certificate.java (getGuarantor): Removed wrong @deprecated tag. (getPrincipal): Likewise. diff --git a/libjava/java/awt/Window.java b/libjava/java/awt/Window.java index 2da988507e9..13ae133beee 100644 --- a/libjava/java/awt/Window.java +++ b/libjava/java/awt/Window.java @@ -46,6 +46,8 @@ import java.awt.peer.WindowPeer; import java.util.EventListener; import java.util.Locale; import java.util.ResourceBundle; +import javax.accessibility.Accessible; +import javax.accessibility.AccessibleContext; /** * This class represents a top-level window with no decorations. @@ -53,8 +55,10 @@ import java.util.ResourceBundle; * @author Aaron M. Renn <arenn@urbanophile.com> * @author Warren Levy <warrenl@cygnus.com> */ -public class Window extends Container +public class Window extends Container implements Accessible { + private static final long serialVersionUID = 4497834738069338734L; + // Serialized fields, from Sun's serialization spec. private String warningString = null; private int windowSerializedDataVersion = 0; // FIXME @@ -69,6 +73,7 @@ public class Window extends Container private transient WindowFocusListener windowFocusListener; private transient WindowStateListener windowStateListener; private transient GraphicsConfiguration graphicsConfiguration; + private transient AccessibleContext accessibleContext; /** * This (package access) constructor is used by subclasses that want @@ -87,7 +92,7 @@ public class Window extends Container this(); graphicsConfiguration = gc; } - + /** * Initializes a new instance of <code>Window</code> with the specified * parent. The window will initially be invisible. @@ -585,7 +590,7 @@ public class Window extends Container */ public void applyResourceBundle(ResourceBundle rb) { - // FIXME + throw new Error ("Not implemented"); } /** @@ -600,12 +605,12 @@ public class Window extends Container applyResourceBundle(rb); } - /* public AccessibleContext getAccessibleContext() { // FIXME + //return null; + throw new Error ("Not implemented"); } - */ /** * Get graphics configuration. The implementation for Window will diff --git a/libjava/java/awt/font/GraphicAttribute.java b/libjava/java/awt/font/GraphicAttribute.java index 377b8da4ccc..b4a92168b5c 100644 --- a/libjava/java/awt/font/GraphicAttribute.java +++ b/libjava/java/awt/font/GraphicAttribute.java @@ -63,7 +63,7 @@ public abstract class GraphicAttribute public abstract float getAdvance (); - public int getAlignment () + public final int getAlignment () { return alignment; } diff --git a/libjava/java/awt/font/ImageGraphicAttribute.java b/libjava/java/awt/font/ImageGraphicAttribute.java index ca5b95fc633..9f691078d80 100644 --- a/libjava/java/awt/font/ImageGraphicAttribute.java +++ b/libjava/java/awt/font/ImageGraphicAttribute.java @@ -45,7 +45,7 @@ import java.awt.geom.Rectangle2D; /** * @author Michael Koch */ -public class ImageGraphicAttribute extends GraphicAttribute +public final class ImageGraphicAttribute extends GraphicAttribute { private Image image; diff --git a/libjava/java/awt/image/DataBufferByte.java b/libjava/java/awt/image/DataBufferByte.java index fe2e83beda1..84df5510607 100644 --- a/libjava/java/awt/image/DataBufferByte.java +++ b/libjava/java/awt/image/DataBufferByte.java @@ -49,7 +49,7 @@ package java.awt.image; /** * @author Rolf W. Rasmussen <rolfwr@ii.uib.no> */ -public class DataBufferByte extends DataBuffer +public final class DataBufferByte extends DataBuffer { private byte[] data; private byte[][] bankData; diff --git a/libjava/java/awt/image/DataBufferInt.java b/libjava/java/awt/image/DataBufferInt.java index 1de1f514897..54308fefd02 100644 --- a/libjava/java/awt/image/DataBufferInt.java +++ b/libjava/java/awt/image/DataBufferInt.java @@ -49,7 +49,7 @@ package java.awt.image; /** * @author Rolf W. Rasmussen <rolfwr@ii.uib.no> */ -public class DataBufferInt extends DataBuffer +public final class DataBufferInt extends DataBuffer { private int[] data; private int[][] bankData; diff --git a/libjava/java/awt/image/DataBufferUShort.java b/libjava/java/awt/image/DataBufferUShort.java index a3743fb4749..e11b4ab10b2 100644 --- a/libjava/java/awt/image/DataBufferUShort.java +++ b/libjava/java/awt/image/DataBufferUShort.java @@ -49,7 +49,7 @@ package java.awt.image; /** * @author Rolf W. Rasmussen <rolfwr@ii.uib.no> */ -public class DataBufferUShort extends DataBuffer +public final class DataBufferUShort extends DataBuffer { private short[] data; private short[][] bankData; diff --git a/libjava/java/awt/image/DirectColorModel.java b/libjava/java/awt/image/DirectColorModel.java index b502bdf3bca..9444e831f83 100644 --- a/libjava/java/awt/image/DirectColorModel.java +++ b/libjava/java/awt/image/DirectColorModel.java @@ -376,8 +376,8 @@ public class DirectColorModel extends PackedColorModel return Buffers.getData(buffer); } - public ColorModel coerceData(WritableRaster raster, - boolean isAlphaPremultiplied) + public final ColorModel coerceData (WritableRaster raster, + boolean isAlphaPremultiplied) { if (this.isAlphaPremultiplied == isAlphaPremultiplied) return this; diff --git a/libjava/java/awt/image/PixelGrabber.java b/libjava/java/awt/image/PixelGrabber.java index 24dd6d3fc49..b94ed8fbe86 100644 --- a/libjava/java/awt/image/PixelGrabber.java +++ b/libjava/java/awt/image/PixelGrabber.java @@ -336,8 +336,12 @@ public class PixelGrabber implements ImageConsumer } /** - @deprecated by getStatus - */ + Get the status of the pixel grabbing representing by ImageObserver flags + + @return the status + + @specnote This method is not deprecated but getStatus is preferred to use + */ public synchronized int status() { return getStatus(); |