public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug SWING/17296] BasicGraphicsUtils.drawStringUnderlineCharAt() cannot handle drawing strings in a Graphics2D object since TextLayout  is not implemented
Date: Fri, 03 Sep 2004 23:28:00 -0000	[thread overview]
Message-ID: <20040903232759.17642.qmail@sourceware.org> (raw)
In-Reply-To: <20040902185441.17296.mark@klomp.org>


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-03 23:27 -------
Subject: Bug 17296

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	java-gui-branch
Changes by:	mark@gcc.gnu.org	2004-09-03 23:27:41

Modified files:
	libjava        : ChangeLog 
	libjava/gnu/java/awt/peer/gtk: GdkGraphics.java 
	                               GdkGraphics2D.java 
	libjava/java/awt: FontMetrics.java 
	libjava/javax/swing: JMenu.java 
	libjava/javax/swing/plaf/basic: BasicGraphicsUtils.java 
	libjava/jni/gtk-peer: gnu_java_awt_peer_gtk_GdkGlyphVector.c 

Log message:
	* gnu/java/awt/peer/gtk/GdkGraphics.java (setColor): Use
	Color.BLACK if c == null, don't create new Color object each time.
	* gnu/java/awt/peer/gtk/GdkGraphics2D.java (comp): New private
	field.
	(setColor): Use Color.BLACK when argument null.
	(setComposite): Set this.comp field.
	(getComposite): Return this.comp, or AlphaComposite.SrcOver when null.
	(DrawState.comp): New private field.
	(DrawState.save): Save Composite.
	(DrawState.restore): Restore comp field.
	* java/awt/FontMetrics.java (gRC): New static final private field.
	(getLineMetrics(String, Graphics)): New method.
	(getLineMetrics(String, int, int, Graphics)): Likewise.
	(getLineMetrics(char[], int, int, Graphics)): Likewise.
	(getLineMetrics(CharacterIterator, int, int, Graphics)): Likewise.
	* javax/swing/JMenu.java (JMenu(String, boolean)): Ignore tearoff
	argument. PR SWING/17294.
	* javax/swing/plaf/basic/BasicGraphicsUtils.java (): Always use
	the fall-back code since none of the TextArea methods are really
	implemented now. PR SWING/17296.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c
	(GdkGlyphVector_setChars): Replace assert() with if block when
	pango_itemize() returns null. PR AWT/17295.
	(GdkGlyphVector_allInkExtents): Likewise when vec->glyphitems is null.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.2660.2.363&r2=1.2660.2.364
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/awt/peer/gtk/GdkGraphics.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.4.16.7&r2=1.4.16.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/awt/peer/gtk/GdkGraphics2D.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.7.2.15&r2=1.7.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/awt/FontMetrics.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.5.2.1&r2=1.5.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/JMenu.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.3.8.11&r2=1.3.8.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/javax/swing/plaf/basic/BasicGraphicsUtils.java.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.7.2.2&r2=1.7.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c.diff?cvsroot=gcc&only_with_tag=java-gui-branch&r1=1.2.12.2&r2=1.2.12.3



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17296


  reply	other threads:[~2004-09-03 23:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-02 18:54 [Bug SWING/17296] New: " mark at klomp dot org
2004-09-03 23:28 ` cvs-commit at gcc dot gnu dot org [this message]
2004-09-07  8:41 ` [Bug SWING/17296] " pinskia at gcc dot gnu dot org
2004-09-07 20:27 ` mark at klomp dot org
2004-09-09  3:22 ` pinskia at gcc dot gnu dot org
2004-12-01  0:32 ` cvs-commit at gcc dot gnu dot org
2004-12-09  0:15 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17296-3639@http.gcc.gnu.org/bugzilla/>
2010-09-08 18:19 ` [Bug swing/17296] " LpSolit at netscape dot net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040903232759.17642.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).