2003-02-13 Michael Koch <konqueror@gmx.de>
authorMichael Koch <konqueror@gmx.de>
Thu, 13 Feb 2003 19:28:32 +0000 (19:28 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Thu, 13 Feb 2003 19:28:32 +0000 (19:28 +0000)
* java/awt/Label.java
(Label): Don't implement Serializable directly.
(addNotify): Fixed typo in documentation.
* java/awt/List.java
(List): Don't implement Serializable directly.
* java/awt/PopupMenu.java
(PopupMenu): Don't implement Serializable directly.
* java/awt/ScrollPane.java
(ScrollPane): Don't implement Serializable directly.
* java/awt/Scrollbar.java
(Scrollbar): Don't implement Serializable directly.
* java/awt/TextArea.java
(preferredSize): Fixed method arguments.
* java/awt/TextField.java
(TextField): Don't implement Serializable directly.
* java/awt/color/ICC_ColorSpace.java
(fromCIOXYZ): Documentation added.
(getMinValue): Documentation added.
(getMaxValue): Documentation added.
* java/awt/datatransfer/DataFlavor.java
(isMimeTypeEqual): May not be final.
(clone): Throws CloneNotSupportedException.
(getReaderForText): Don't throws UnsupportedEncodingException.

From-SVN: r62863

libjava/ChangeLog
libjava/java/awt/Label.java
libjava/java/awt/List.java
libjava/java/awt/PopupMenu.java
libjava/java/awt/ScrollPane.java
libjava/java/awt/Scrollbar.java
libjava/java/awt/TextArea.java
libjava/java/awt/TextField.java
libjava/java/awt/color/ICC_ColorSpace.java
libjava/java/awt/datatransfer/DataFlavor.java

index f9a463787d4c8f362bcfe25f2e97fb49861da273..3f8448c1627325840bdaa9013189b9480607cc2d 100644 (file)
@@ -1,3 +1,29 @@
+2003-02-13  Michael Koch  <konqueror@gmx.de>
+       * java/awt/Label.java
+       (Label): Don't implement Serializable directly.
+       (addNotify): Fixed typo in documentation.
+       * java/awt/List.java
+       (List): Don't implement Serializable directly.
+       * java/awt/PopupMenu.java
+       (PopupMenu): Don't implement Serializable directly.
+       * java/awt/ScrollPane.java
+       (ScrollPane): Don't implement Serializable directly.
+       * java/awt/Scrollbar.java
+       (Scrollbar): Don't implement Serializable directly.
+       * java/awt/TextArea.java
+       (preferredSize): Fixed method arguments.
+       * java/awt/TextField.java
+       (TextField): Don't implement Serializable directly.
+       * java/awt/color/ICC_ColorSpace.java
+       (fromCIOXYZ): Documentation added.
+       (getMinValue): Documentation added.
+       (getMaxValue): Documentation added.
+       * java/awt/datatransfer/DataFlavor.java
+       (isMimeTypeEqual): May not be final.
+       (clone): Throws CloneNotSupportedException.
+       (getReaderForText): Don't throws UnsupportedEncodingException.
+
 2003-02-13  Michael Koch  <konqueror@gmx.de>
  
        * gnu/java/awt/peer/gtk/GdkGraphics.java
index 4f248c30bb9db6963bdad36a8bdd62a07628177a..47f6733da1687c8638f404cd4961604ee77d7dbf 100644 (file)
@@ -40,7 +40,6 @@ package java.awt;
 
 import java.awt.peer.LabelPeer;
 import java.awt.peer.ComponentPeer;
-import java.io.Serializable;
 import javax.accessibility.Accessible;
 
 /**
@@ -50,7 +49,7 @@ import javax.accessibility.Accessible;
   * @author Aaron M. Renn (arenn@urbanophile.com)
   * @author Tom Tromey <tromey@cygnus.com>
   */
-public class Label extends Component implements Serializable, Accessible
+public class Label extends Component implements Accessible
 {
 
 /*
@@ -225,7 +224,7 @@ setText(String text)
 /*************************************************************************/
 
 /**
-  * Notifies this lable that it has been added to a container, causing
+  * Notifies this label that it has been added to a container, causing
   * the peer to be created.  This method is called internally by the AWT
   * system.
   */
index 561a30d4dab297996cffea53bb2259f8ddd048cd..d182e56001469e88ef4fbe085d781af7a3dcb5f9 100644 (file)
@@ -54,7 +54,7 @@ import javax.accessibility.Accessible;
   * @author Aaron M. Renn (arenn@urbanophile.com)
   */
 public class List extends Component
-  implements ItemSelectable, Serializable, Accessible
+  implements ItemSelectable, Accessible
 {
 
 /*
index d0f1980472b8ed55949df1dd260591ba0111bbc8..75e565d3e9b52714443a844d474d0f2066675d13 100644 (file)
@@ -47,7 +47,7 @@ import java.awt.peer.MenuComponentPeer;
   *
   * @author Aaron M. Renn (arenn@urbanophile.com)
   */
-public class PopupMenu extends Menu implements java.io.Serializable
+public class PopupMenu extends Menu
 {
 
 /*
index 045600cddf262b06708b739fa50afe78b0c673e9..9b8b82a9a952cc525469f7cd0a85cb4ae583b5ad 100644 (file)
@@ -41,7 +41,6 @@ package java.awt;
 import java.awt.peer.ScrollPanePeer;
 import java.awt.peer.ContainerPeer;
 import java.awt.peer.ComponentPeer;
-import java.io.Serializable;
 import javax.accessibility.Accessible;
 
 /**
@@ -50,7 +49,7 @@ import javax.accessibility.Accessible;
   *
   * @author Aaron M. Renn (arenn@urbanophile.com)
   */
-public class ScrollPane extends Container implements Accessible, Serializable
+public class ScrollPane extends Container implements Accessible
 {
 
 /*
index 4bdc3166ad93010a69c9f440cd80af47bc781cab..76daee3f8bfbe059e95d3524a73a7115e164e3cb 100644 (file)
@@ -42,7 +42,6 @@ import java.awt.peer.ScrollbarPeer;
 import java.awt.peer.ComponentPeer;
 import java.awt.event.AdjustmentListener;
 import java.awt.event.AdjustmentEvent;
-import java.io.Serializable;
 import javax.accessibility.Accessible;
 
 /**
@@ -52,8 +51,7 @@ import javax.accessibility.Accessible;
   * @author Tom Tromey <tromey@cygnus.com>
   */
 public class Scrollbar extends Component implements Accessible,
-                                                    Adjustable,
-                                                    Serializable
+                                                    Adjustable
 {
 
 // FIXME: Serialization readObject/writeObject
index f164add49a1eec490163aaed7bf66a8a4e19ae40..f458f9b75e5ff1049870145f18ee55cffaa06d4a 100644 (file)
@@ -404,7 +404,7 @@ preferredSize()
   * <code>getPreferredSize(int)</code>.
   */
 public Dimension
-preferredSize(int columns)
+preferredSize(int rows, int columns)
 {
   return(getPreferredSize(rows, columns));
 }
index 0106d77e3ad75cb8bb0c1bd169b972c8df90fd4c..335edc6d2206680b6854adf55e58a7df3b1c63b3 100644 (file)
@@ -49,7 +49,7 @@ import java.awt.peer.ComponentPeer;
   *
   * @author Aaron M. Renn (arenn@urbanophile.com)
   */
-public class TextField extends TextComponent implements java.io.Serializable
+public class TextField extends TextComponent
 {
 
 /*
index 2b7016742c9fd8f38ad5855890babf38b65d8ca8..2ed247f52b05a50a193ee9556c506a2f0bda03cb 100644 (file)
@@ -143,6 +143,13 @@ public class ICC_ColorSpace extends ColorSpace
     throw new UnsupportedOperationException();
   }
 
+  /**
+   * Transforms a color value assumed to be in the CS_CIEXYZ conversion color
+   * space into this ColorSpace.
+   *
+   * @exception ArrayIndexOutOfBoundsException If array length is not at
+   * least 3.
+   */
   public float[] fromCIEXYZ(float[] colorvalue)
   {
     // FIXME: Not implemented
@@ -150,6 +157,12 @@ public class ICC_ColorSpace extends ColorSpace
   }
 
   /**
+   * Returns the minimum normalized color component value for the specified
+   * component.
+   *
+   * @exception IllegalArgumentException If component is less than 0 or greater
+   * than numComponents - 1.
+   *
    * @since 1.4
    */
   public float getMinValue(int idx)
@@ -162,6 +175,12 @@ public class ICC_ColorSpace extends ColorSpace
   }
 
   /**
+   * Returns the maximum normalized color component value for the specified
+   * component.
+   *
+   * @exception IllegalArgumentException If component is less than 0 or greater
+   * than numComponents - 1.
+   *
    * @since 1.4
    */
   public float getMaxValue(int idx)
index e1500a7926cc4646c943b03798c26791a4d772ed..86d1f53c1d9af4ad3dad78ec6724c8e388a0bf4f 100644 (file)
@@ -508,7 +508,7 @@ setHumanPresentableName(String humanPresentableName)
   *
   * @exception NullPointerException If mimeType is null.
   */
-public final boolean
+public boolean
 isMimeTypeEqual(String mimeType)
 {
   // FIXME: Need to handle default attributes and parameters
@@ -660,8 +660,7 @@ isFlavorJavaFileListType()
   * the Cloneable interface. Subclasses that override the clone method can also
   * throw this exception to indicate that an instance cannot be cloned.
   */
-public Object
-clone()
+public Object clone () throws CloneNotSupportedException
 {
   try
     {
@@ -975,10 +974,8 @@ selectBestTextFlavor(DataFlavor[] availableFlavors)
   * @exception UnsupportedEncodingException if the "charset" isn't supported
   * on this platform.
   */
-public Reader
-getReaderForText(Transferable transferable) throws UnsupportedFlavorException,
-                                                   IOException,
-                                                   UnsupportedEncodingException
+public Reader getReaderForText(Transferable transferable)
+  throws UnsupportedFlavorException, IOException
 {
     if (!transferable.isDataFlavorSupported(this))
         throw new UnsupportedFlavorException(this);