[Patch][gui] java.awt - API cleanup
Michael Koch
konqueror@gmx.de
Sun Nov 21 11:28:00 GMT 2004
Hi list,
I just commited the attached patch to cleanup our java.awt API a bit.
Michael
2004-11-21 Michael Koch <konqueror@gmx.de>
* java/awt/color/ICC_Profile.java
(icSigNamedColorTag): Removed.
* java/awt/datatransfer/DataFlavor.java
(isMimeTypeEqual): Made final.
* java/awt/image/AffineTransformOp.java:
Reworked javadocs.
(TYPE_BICUBIC): Added @since tag.
-------------- next part --------------
Index: java/awt/color/ICC_Profile.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/color/ICC_Profile.java,v
retrieving revision 1.8.24.4
diff -u -r1.8.24.4 ICC_Profile.java
--- java/awt/color/ICC_Profile.java 16 Nov 2004 10:55:58 -0000 1.8.24.4
+++ java/awt/color/ICC_Profile.java 21 Nov 2004 11:17:06 -0000
@@ -174,7 +174,6 @@
public static final int icSigMeasurementTag = 0x6D656173; // 'meas'
public static final int icSigMediaBlackPointTag = 0x626B7074; // 'bkpt'
public static final int icSigMediaWhitePointTag = 0x77747074; // 'wtpt'
- public static final int icSigNamedColorTag = 0x6E636f6C; // ''ncol'
public static final int icSigNamedColor2Tag = 0x6E636C32; // 'ncl2'
public static final int icSigOutputResponseTag = 0x72657370; // 'resp'
public static final int icSigPreview0Tag = 0x70726530; // 'pre0'
Index: java/awt/datatransfer/DataFlavor.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/datatransfer/DataFlavor.java,v
retrieving revision 1.13.2.3
diff -u -r1.13.2.3 DataFlavor.java
--- java/awt/datatransfer/DataFlavor.java 16 Nov 2004 09:55:38 -0000 1.13.2.3
+++ java/awt/datatransfer/DataFlavor.java 21 Nov 2004 11:17:06 -0000
@@ -528,7 +528,7 @@
* @return <code>true</code> if the flavor's MIME type is equal to this
* object's MIME type, <code>false</code> otherwise.
*/
-public boolean
+public final boolean
isMimeTypeEqual(DataFlavor flavor)
{
return(isMimeTypeEqual(flavor.getMimeType()));
Index: java/awt/image/AffineTransformOp.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/image/AffineTransformOp.java,v
retrieving revision 1.1.2.11
diff -u -r1.1.2.11 AffineTransformOp.java
--- java/awt/image/AffineTransformOp.java 17 Nov 2004 08:05:15 -0000 1.1.2.11
+++ java/awt/image/AffineTransformOp.java 21 Nov 2004 11:17:06 -0000
@@ -51,13 +51,17 @@
* This class performs affine transformation between two images or
* rasters in 2 dimensions.
*
- * @author Olga Rodimina <rodimina@redhat.com>
+ * @author Olga Rodimina (rodimina@redhat.com)
*/
-
public class AffineTransformOp implements BufferedImageOp, RasterOp
{
public static final int TYPE_NEAREST_NEIGHBOR = 1;
+
public static final int TYPE_BILINEAR = 2;
+
+ /**
+ * @since 1.5.0
+ */
public static final int TYPE_BICUBIC = 3;
private AffineTransform transform;
@@ -348,7 +352,8 @@
return transform.transform (srcPt, dstPt);
}
- /** Returns rendering hints that are used during transformation.
+ /**
+ * Returns rendering hints that are used during transformation.
*
* @return rendering hints
*/
@@ -357,7 +362,8 @@
return hints;
}
- /** Returns transform used in transformation between source and destination
+ /**
+ * Returns transform used in transformation between source and destination
* image.
*
* @return transform
More information about the Java-patches
mailing list