Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 24767 invoked from network); 31 Oct 2006 14:50:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2006 14:50:43 -0000 Received: (qmail 25040 invoked by uid 500); 31 Oct 2006 14:50:54 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 24999 invoked by uid 500); 31 Oct 2006 14:50:54 -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 24988 invoked by uid 99); 31 Oct 2006 14:50:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 06:50:54 -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; Tue, 31 Oct 2006 06:50:40 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 994307142F3 for ; Tue, 31 Oct 2006 06:50:20 -0800 (PST) Message-ID: <28909198.1162306220625.JavaMail.root@brutus> Date: Tue, 31 Oct 2006 06:50:20 -0800 (PST) From: "Denis Kishenko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-2020) [classlib][awt] Stroke is not produces proper shapes In-Reply-To: <13540658.1162305976593.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-2020?page=all ] Denis Kishenko updated HARMONY-2020: ------------------------------------ Attachment: actual.PNG Actual image > [classlib][awt] Stroke is not produces proper shapes > ---------------------------------------------------- > > Key: HARMONY-2020 > URL: http://issues.apache.org/jira/browse/HARMONY-2020 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Denis Kishenko > Attachments: actual.PNG, expected.PNG > > > The created shapes are not as expected. I expected top have 2x2 rects (as RI does), but have 1x2 lines instead. > ================ Test ================ > import java.awt.BasicStroke; > import java.awt.Color; > import java.awt.Frame; > import java.awt.Graphics; > import java.awt.Graphics2D; > import java.awt.Panel; > public class Test { > public static void main(String args[]) throws Exception { > Frame f = new Frame(); > Panel p = new Panel() { > public void paint(final Graphics g) { > super.paint(g); > Graphics2D g2d = (Graphics2D)g; > g2d.setStroke(new BasicStroke(2, BasicStroke.CAP_BUTT, > BasicStroke.JOIN_BEVEL, 0, new float[] {2, 4}, 0)); > for (int i = 0; i < getHeight(); i += 3) { > g.setColor(Color.RED); > g.drawLine(0, i, getWidth(), i); > } > } > }; > f.add(p); > f.setSize(200, 200); > f.setVisible(true); > } > } -- 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