This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] java.awt.Graphics2D


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


This patch fixes java.awt.Graphics2D. Please review and comment.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+UfCoWSOgCCdjSDsRAklIAJ9JnEc+GMtMv7zKItOi5adUef1aAwCgmkpb
kirA07KoxKDEBTuOtnQApvA=
=IBa9
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1715
diff -u -r1.1715 ChangeLog
--- ChangeLog	18 Feb 2003 07:26:20 -0000	1.1715
+++ ChangeLog	18 Feb 2003 07:28:02 -0000
@@ -1,3 +1,12 @@
+2003-02-18  Michael Koch <konqueror@gmx.de>
+
+	* gnu/awt/j2d/Graphics2DImpl.java
+	(getFontRenderContext): New method.
+	(drawGlyphVector): New method.
+	* java/awt/Graphics2D.java
+	(getFontRenderContext): New abstract method.
+	(drawGlyphVector): New abstract method.
+	
 2003-02-18  Michael Koch  <konqueror@gmx.de>
 
 	* java/nio/channels/FileChannel.java
Index: gnu/awt/j2d/Graphics2DImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/awt/j2d/Graphics2DImpl.java,v
retrieving revision 1.3
diff -u -r1.3 Graphics2DImpl.java
--- gnu/awt/j2d/Graphics2DImpl.java	2 Jan 2003 00:14:22 -0000	1.3
+++ gnu/awt/j2d/Graphics2DImpl.java	18 Feb 2003 07:28:02 -0000
@@ -21,6 +21,8 @@
 import java.awt.Paint;
 import java.awt.RenderingHints;
 import java.awt.Stroke;
+import java.awt.font.FontRenderContext;
+import java.awt.font.GlyphVector;
 import java.awt.geom.AffineTransform;
 import java.awt.image.ImageObserver;
 import java.awt.image.BufferedImage;
@@ -513,6 +515,16 @@
   }
 
   public Stroke getStroke()
+  {
+    throw new UnsupportedOperationException("not implemented yet");
+  }
+
+  public FontRenderContext getFontRenderContext ()
+  {
+    throw new UnsupportedOperationException("not implemented yet");
+  }
+
+  public void drawGlyphVector (GlyphVector g, float x, float y)
   {
     throw new UnsupportedOperationException("not implemented yet");
   }
Index: java/awt/Graphics2D.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Graphics2D.java,v
retrieving revision 1.6
diff -u -r1.6 Graphics2D.java
--- java/awt/Graphics2D.java	2 Jan 2003 00:14:22 -0000	1.6
+++ java/awt/Graphics2D.java	18 Feb 2003 07:28:02 -0000
@@ -36,6 +36,8 @@
 
 package java.awt;
 
+import java.awt.font.FontRenderContext;
+import java.awt.font.GlyphVector;
 import java.awt.geom.AffineTransform;
 import java.awt.image.BufferedImage;
 import java.awt.image.BufferedImageOp;
@@ -151,5 +153,7 @@
 
   public abstract void clip(Shape s);
 
-  // public abstract FontRenderContext getFontRenderContext();
+  public abstract FontRenderContext getFontRenderContext ();
+
+  public abstract void drawGlyphVector (GlyphVector g, float x, float y);
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]