Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 35489 invoked from network); 2 Nov 2006 11:39:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 11:39:44 -0000 Received: (qmail 60603 invoked by uid 500); 2 Nov 2006 11:39:52 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 60562 invoked by uid 500); 2 Nov 2006 11:39:52 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 60528 invoked by uid 99); 2 Nov 2006 11:39:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 03:39:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 03:39:40 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2E3877142F0 for ; Thu, 2 Nov 2006 03:39:20 -0800 (PST) Message-ID: <29317787.1162467560187.JavaMail.root@brutus> Date: Thu, 2 Nov 2006 03:39:20 -0800 (PST) From: "Denis Kishenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-2054) [classlib][awt] Graphics2D draws incorrect if shape is thin and transform exists In-Reply-To: <19578092.1162467436542.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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