harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2054) [classlib][awt] Graphics2D draws incorrect if shape is thin and transform exists
Date Thu, 02 Nov 2006 11:39:20 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2054?page=all ]

Denis Kishenko updated HARMONY-2054:
------------------------------------

    Attachment: HARMONY-2054-expected.PNG

Expected screenshot

> [classlib][awt] Graphics2D draws incorrect if shape is thin and transform exists
> --------------------------------------------------------------------------------
>
>                 Key: HARMONY-2054
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2054
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: HARMONY-2054-actual.PNG, HARMONY-2054-expected.PNG
>
>
> ========== Test =============
> import java.awt.BasicStroke;
> import java.awt.Color;
> import java.awt.Graphics;
> import java.awt.Graphics2D;
> import java.awt.event.WindowAdapter;
> import java.awt.event.WindowEvent;
> import java.awt.geom.AffineTransform;
> import java.awt.geom.Line2D;
> import javax.swing.JFrame;
> public class Test {
>     public static void main(String[] args) {
>         JFrame f = new JFrame("Test") {
>                 public void paint(Graphics g) {
>                     Graphics2D g2 = (Graphics2D)g;
>                     g.setColor(Color.blue);
>                     g2.draw(new Line2D.Float(20, 50, 80, 50));
>                     g2.setStroke(new BasicStroke(0.5f));
>                     g.setColor(Color.green);
>                     g2.draw(new Line2D.Float(20, 60, 80, 60));
>                     g2.setTransform(AffineTransform.getScaleInstance(1, 10));
>                     g.setColor(Color.red);
>                     g2.draw(new Line2D.Float(20, 7, 80, 7));
>                 }
>         };
>         f.addWindowListener(
>                 new WindowAdapter() {
>                         public void windowClosing(WindowEvent e) {
>                                 System.exit(0);
>                         }
>                     }
>             );              
>         f.setSize(100, 150);
>         f.show();
>     }
>     
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message