This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] java.awt.Graphics
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 13 Feb 2003 16:17:00 +0100
- Subject: [PATCH] java.awt.Graphics
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
Here is a patch for java.awt.Graphics to get more JDK 1.4 compatible.
It also affects the GTK peer. I only tried with the new GTK peer as
this seems to be the only compilable.
Please review and comment.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+S7bsWSOgCCdjSDsRAsa0AJ4gnJgp5U/ooL91JHiSKRyK6eMqAwCdHyAz
FIo6Fq9J1j3lUA/d79ku+FQ=
=w9Oz
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1694
diff -u -r1.1694 ChangeLog
--- ChangeLog 13 Feb 2003 11:37:09 -0000 1.1694
+++ ChangeLog 13 Feb 2003 11:40:58 -0000
@@ -1,5 +1,12 @@
2003-02-13 Michael Koch <konqueror@gmx.de>
+ * gnu/java/awt/peer/gtk/GdkGraphics.java
+ (drawString): New stubbed method.
+ * java/awt/Graphics.java
+ (drawString): New method.
+
+2003-02-13 Michael Koch <konqueror@gmx.de>
+
* java/nio/ByteBuffer.java
(endian): New member variable.
(get): New methods.
Index: gnu/java/awt/peer/gtk/GdkGraphics.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/awt/peer/gtk/GdkGraphics.java,v
retrieving revision 1.1
diff -u -r1.1 GdkGraphics.java
--- gnu/java/awt/peer/gtk/GdkGraphics.java 31 Jan 2003 17:54:13 -0000 1.1
+++ gnu/java/awt/peer/gtk/GdkGraphics.java 13 Feb 2003 11:40:58 -0000
@@ -40,6 +40,7 @@
import java.awt.*;
import java.awt.image.*;
+import java.text.AttributedCharacterIterator;
public class GdkGraphics extends Graphics
{
@@ -209,6 +210,11 @@
{
drawString (str, x, y,
((GtkFontPeer)font.getPeer ()).getXLFD (), font.getSize ());
+ }
+
+ public void drawString (AttributedCharacterIterator ci, int x, int y)
+ {
+ throw new Error ("not implemented");
}
public void drawRoundRect(int x, int y, int width, int height,
Index: java/awt/Graphics.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Graphics.java,v
retrieving revision 1.4
diff -u -r1.4 Graphics.java
--- java/awt/Graphics.java 22 Jan 2002 22:40:04 -0000 1.4
+++ java/awt/Graphics.java 13 Feb 2003 11:40:58 -0000
@@ -39,6 +39,7 @@
package java.awt;
import java.awt.image.ImageObserver;
+import java.text.AttributedCharacterIterator;
/**
* This is the abstract superclass of classes for drawing to graphics
@@ -594,6 +595,8 @@
*/
public abstract void
drawString(String string, int x, int y);
+
+public abstract void drawString (AttributedCharacterIterator ci, int x, int y);
/*************************************************************************/