[gui] Fixlets/Workarounds for JFreeChart

Mark Wielaard mark@klomp.org
Sat Sep 4 03:29:00 GMT 2004


Hi,

To get the JFreeChart demo program working as described on
http://classpath.wildebeest.org/dairy/index.php?p=31
I needed the following Fixlets/Workarounds:

2004-09-02  Mark Wielaard  <mark@klomp.org>

        * 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.
        * 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): Work around assert() when
        pango_itemize() returns null. PR AWT/17295.
        (GdkGlyphVector_allInkExtents): Likewise when vec->glyphitems is null.

I have added bugzilla reports for those issues that I work around but
that need a real fix.

OK to commit to the gui branch?

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jfreechart-fixlets.patch
Type: text/x-patch
Size: 9665 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040904/e025aa23/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040904/e025aa23/attachment.sig>


More information about the Java-patches mailing list