Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 73106 invoked from network); 23 May 2007 13:48:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2007 13:48:43 -0000 Received: (qmail 77984 invoked by uid 500); 23 May 2007 13:48:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 77896 invoked by uid 500); 23 May 2007 13:48:43 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 77878 invoked by uid 99); 23 May 2007 13:48:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 06:48:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 23 May 2007 06:48:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 29127714063 for ; Wed, 23 May 2007 06:48:17 -0700 (PDT) Message-ID: <26351090.1179928097165.JavaMail.jira@brutus> Date: Wed, 23 May 2007 06:48:17 -0700 (PDT) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2020) [classlib][awt] Stroke is not produces proper shapes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov updated HARMONY-2020: ------------------------------------- Assignee: (was: Alexei Zakharov) > [classlib][awt] Stroke is not produces proper shapes > ---------------------------------------------------- > > Key: HARMONY-2020 > URL: https://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. - You can reply to this email to add a comment to the issue online.