Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 5324 invoked from network); 13 Dec 2006 15:16:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 15:16:44 -0000 Received: (qmail 4431 invoked by uid 500); 13 Dec 2006 15:16:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 4417 invoked by uid 500); 13 Dec 2006 15:16:51 -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 4408 invoked by uid 99); 13 Dec 2006 15:16:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 07:16:51 -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; Wed, 13 Dec 2006 07:16:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 098767140F6 for ; Wed, 13 Dec 2006 07:16:23 -0800 (PST) Message-ID: <27742542.1166022983036.JavaMail.jira@brutus> Date: Wed, 13 Dec 2006 07:16:23 -0800 (PST) From: "Alexander D Shipilov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2032) [classlib][awt] Harmony clipping differs from RI by one pixel 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-2032?page=comments#action_12458151 ] Alexander D Shipilov commented on HARMONY-2032: ----------------------------------------------- I have modified test to use public API. Here it is: ============= import java.awt.Color; import java.awt.Frame; import java.awt.Graphics; import java.awt.Panel; import java.awt.Rectangle; import java.awt.geom.Area; public class Bug2032 { public static void main(String args[]) throws Exception { Frame f = new Frame(); final Panel top = new Panel() { public void paint(final Graphics g) { Area area = new Area(new Rectangle(10, 10, 2, 10)); g.setClip(area); g.setColor(Color.RED); g.drawRect(10, 10, 1, 10); } }; f.add(top); f.setSize(200, 200); f.setVisible(true); } } ======= In this case as RI as Harmony behavior is similar. So I think, we could close this JIRA. > [classlib][awt] Harmony clipping differs from RI by one pixel > ------------------------------------------------------------- > > Key: HARMONY-2032 > URL: http://issues.apache.org/jira/browse/HARMONY-2032 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Denis Kishenko > Attachments: HARMONY-2032-actual.PNG, HARMONY-2032-expected.PNG > > > =========== Test ========== > import java.awt.Color; > import java.awt.Frame; > import java.awt.Graphics; > import java.awt.Panel; > import java.awt.Rectangle; > import org.apache.harmony.awt.gl.MultiRectArea; > public class Test { > public static void main(String args[]) throws Exception { > Frame f = new Frame(); > final Panel top = new Panel() { > public void paint(final Graphics g) { > MultiRectArea mma = new MultiRectArea(); > mma.add(new Rectangle(10, 10, 2, 10)); > g.setClip(mma); > g.setColor(Color.RED); > g.drawRect(10, 10, 1, 10); > } > }; > f.add(top); > 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