Frame.java, [...]: New versions from classpath.
authorMichael Koch <konqueror@gmx.de>
Wed, 11 Jun 2003 10:37:48 +0000 (10:37 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 11 Jun 2003 10:37:48 +0000 (10:37 +0000)
2003-06-11  Michael Koch  <konqueror@gmx.de>

* java/awt/Frame.java,
java/awt/Graphics.java,
java/awt/Menu.java,
java/awt/Robot.java,
java/awt/image/ColorModel.java:
New versions from classpath.

From-SVN: r67754

libjava/ChangeLog
libjava/java/awt/Frame.java
libjava/java/awt/Graphics.java
libjava/java/awt/Menu.java
libjava/java/awt/Robot.java
libjava/java/awt/image/ColorModel.java

index 997cf1ecffc77a33878c8245e1aaf05abcb5e0b7..388dd00e2f4b8a15cb7b9c8a3d550971db56731c 100644 (file)
@@ -1,3 +1,12 @@
+2003-06-11  Michael Koch  <konqueror@gmx.de>
+
+       * java/awt/Frame.java,
+       java/awt/Graphics.java,
+       java/awt/Menu.java,
+       java/awt/Robot.java,
+       java/awt/image/ColorModel.java:
+       New versions from classpath.
+
 2003-06-10  Michael Koch  <konqueror@gmx.de>
 
        * java/io/PrintStream.java:
index d162df76d1862a182ec8396922c21be58df2bedc..82fed1656aebb1a1bfce14bbf4998785309a3bab 100644 (file)
@@ -515,7 +515,7 @@ getFrames()
    */
   public void setMaximizedBounds (Rectangle maximizedBounds)
   {
-    throw new Error ("not implemented");
+    this.maximizedBounds = maximizedBounds;
   }
 
   /**
index 1b4581b64f0692c270d919e7874936cc6a2c7210..c225b521a047cdb44497e03c4159ee26363459cc 100644 (file)
@@ -440,24 +440,6 @@ fill3DRect(int x, int y, int width, int height, boolean raised)
 
 /*************************************************************************/
 
-/**
-  * Draws the outline of the specified rectangle with a 3D effect
-  *
-  * @param x The X coordinate of the upper left corner of the draw rect.
-  * @param y The Y coordinate of the upper left corner of the draw rect.
-  * @param width The width of the draw rect.
-  * @param height The height of the draw rect.
-  * @param raised <code>true</code> if the rectangle appears raised,
-  * <code>false</code> if it should appear etched.
-  */
-public void
-drawRoundRect(int x, int y, int width, int height, boolean raised)
-{
-  // FIXME: ???
-}
-
-/*************************************************************************/
-
 /**
   * Draws an oval that just fits within the specified rectangle.
   *
@@ -615,28 +597,6 @@ drawChars(char data[], int offset, int length, int x, int y)
   drawString(new String(data, offset, length), x, y);
 }
 
-/*************************************************************************/
-
-/**
-  * Draws the specified bytes as text starting at the specified point.
-  *
-  * @param data The array of bytes to draw.
-  * @param offset The offset into the array to start drawing bytes from.
-  * @param length The number of bytes to draw.
-  * @param x The X coordinate of the point to draw at.
-  * @param y The Y coordinate of the point to draw at.
-  */
-public void
-drawChars(byte data[], int offset, int length, int x, int y)
-{
-  drawString(new String(data, offset, length), x, y);
-}
-
-/*
-public abstract void drawString(AttributedCharacterIterator iterator,
-                                 int x, int y)
-*/
-
 public void
 drawBytes(byte[] data, int offset, int length, int x, int y)
 {
index 40253c493b0c565fbd48d28b699613d4a31b58d8..52244b9a1c46a7663cb2b4dd4f716373ff4cd01b 100644 (file)
@@ -187,21 +187,6 @@ public int countItems ()
  
 /*************************************************************************/
 
-/**
-  * Returns the number of items in this menu.
-  *
-  * @return The number of items in this menu.
-  *
-  * @deprecated This method is deprecated in favor of <code>getItemCount()</code>.
-  */
-public int
-count()
-{
-  return(items.size());
-}
-/*************************************************************************/
-
 /**
   * Returns the item at the specified index.
   *
index cc0ab15c6e9c08e112c59311912d8095abbe0c81..f633fc0b3547be13af34a638775974bc870b1e97 100644 (file)
@@ -40,9 +40,13 @@ package java.awt;
 
 import java.awt.image.BufferedImage;
 
+/**
+ * @since 1.3
+ */
 /** STUB CLASS ONLY */
 public class Robot
 {
+  private GraphicsDevice screen;
   private boolean waitForIdle;
   private int autoDelay;
   
@@ -68,6 +72,7 @@ public class Robot
   public Robot(GraphicsDevice screen) throws AWTException
   {
     this();
+    this.screen = screen;
   }
 
   public void mouseMove(int x, int y)
index f798ee2c86166cb75981880e7298053e2f8db9bb..9976985ab52e1ec542e5247a7ef0d48cfb0a4a8e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2002  Free Software Foundation
+/* Copyright (C) 1999, 2000, 2002, 2003  Free Software Foundation
 
 This file is part of GNU Classpath.
 
@@ -113,7 +113,7 @@ public abstract class ColorModel implements Transparency
   {
     this(bits * 4, // total bits, sRGB, four channels
         nArray(bits, 4), // bits for each channel
-        null, // FIXME: should be sRGB
+        ColorSpace.getInstance(ColorSpace.CS_sRGB), // sRGB
         true, // has alpha
         false, // not premultiplied
         TRANSLUCENT,