aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-02-13 19:28:32 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-02-13 19:28:32 +0000
commit659efb326d2b75c6b77863540911c41c49acf1f1 (patch)
tree25971b73b4e9f74feefe1b4213d1e1613d9f6d2d /libjava
parent1cb02bdfd32b6a2d1248095729c33c3c93796abb (diff)
downloadgcc-659efb326d2b75c6b77863540911c41c49acf1f1.zip
gcc-659efb326d2b75c6b77863540911c41c49acf1f1.tar.gz
gcc-659efb326d2b75c6b77863540911c41c49acf1f1.tar.bz2
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. From-SVN: r62863
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog26
-rw-r--r--libjava/java/awt/Label.java5
-rw-r--r--libjava/java/awt/List.java2
-rw-r--r--libjava/java/awt/PopupMenu.java2
-rw-r--r--libjava/java/awt/ScrollPane.java3
-rw-r--r--libjava/java/awt/Scrollbar.java4
-rw-r--r--libjava/java/awt/TextArea.java2
-rw-r--r--libjava/java/awt/TextField.java2
-rw-r--r--libjava/java/awt/color/ICC_ColorSpace.java19
-rw-r--r--libjava/java/awt/datatransfer/DataFlavor.java11
10 files changed, 57 insertions, 19 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index f9a4637..3f8448c 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,31 @@
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
(drawString): New stubbed method.
* java/awt/Graphics.java
diff --git a/libjava/java/awt/Label.java b/libjava/java/awt/Label.java
index 4f248c3..47f6733 100644
--- a/libjava/java/awt/Label.java
+++ b/libjava/java/awt/Label.java
@@ -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.
*/
diff --git a/libjava/java/awt/List.java b/libjava/java/awt/List.java
index 561a30d..d182e56 100644
--- a/libjava/java/awt/List.java
+++ b/libjava/java/awt/List.java
@@ -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
{
/*
diff --git a/libjava/java/awt/PopupMenu.java b/libjava/java/awt/PopupMenu.java
index d0f1980..75e565d 100644
--- a/libjava/java/awt/PopupMenu.java
+++ b/libjava/java/awt/PopupMenu.java
@@ -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
{
/*
diff --git a/libjava/java/awt/ScrollPane.java b/libjava/java/awt/ScrollPane.java
index 045600c..9b8b82a 100644
--- a/libjava/java/awt/ScrollPane.java
+++ b/libjava/java/awt/ScrollPane.java
@@ -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
{
/*
diff --git a/libjava/java/awt/Scrollbar.java b/libjava/java/awt/Scrollbar.java
index 4bdc316..76daee3 100644
--- a/libjava/java/awt/Scrollbar.java
+++ b/libjava/java/awt/Scrollbar.java
@@ -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
diff --git a/libjava/java/awt/TextArea.java b/libjava/java/awt/TextArea.java
index f164add..f458f9b 100644
--- a/libjava/java/awt/TextArea.java
+++ b/libjava/java/awt/TextArea.java
@@ -404,7 +404,7 @@ preferredSize()
* <code>getPreferredSize(int)</code>.
*/
public Dimension
-preferredSize(int columns)
+preferredSize(int rows, int columns)
{
return(getPreferredSize(rows, columns));
}
diff --git a/libjava/java/awt/TextField.java b/libjava/java/awt/TextField.java
index 0106d77..335edc6 100644
--- a/libjava/java/awt/TextField.java
+++ b/libjava/java/awt/TextField.java
@@ -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
{
/*
diff --git a/libjava/java/awt/color/ICC_ColorSpace.java b/libjava/java/awt/color/ICC_ColorSpace.java
index 2b70167..2ed247f 100644
--- a/libjava/java/awt/color/ICC_ColorSpace.java
+++ b/libjava/java/awt/color/ICC_ColorSpace.java
@@ -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)
diff --git a/libjava/java/awt/datatransfer/DataFlavor.java b/libjava/java/awt/datatransfer/DataFlavor.java
index e1500a7..86d1f53 100644
--- a/libjava/java/awt/datatransfer/DataFlavor.java
+++ b/libjava/java/awt/datatransfer/DataFlavor.java
@@ -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);