From batik-users-return-10535-apmail-xmlgraphics-batik-users-archive=xmlgraphics.apache.org@xmlgraphics.apache.org Sat Jun 10 13:36:16 2006 Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 19020 invoked from network); 10 Jun 2006 13:36:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jun 2006 13:36:16 -0000 Received: (qmail 12201 invoked by uid 500); 10 Jun 2006 13:36:15 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 12182 invoked by uid 500); 10 Jun 2006 13:36:15 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 12168 invoked by uid 99); 10 Jun 2006 13:36:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jun 2006 06:36:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [82.130.70.14] (HELO XSMTP0.ethz.ch) (82.130.70.14) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jun 2006 06:36:13 -0700 Received: from xfe1.d.ethz.ch ([82.130.124.41]) by XSMTP0.ethz.ch with Microsoft SMTPSVC(6.0.3790.2499); Sat, 10 Jun 2006 15:35:51 +0200 Received: from [192.168.0.105] ([69.196.132.104]) by xfe1.d.ethz.ch over TLS secured channel with Microsoft SMTPSVC(6.0.3790.2499); Sat, 10 Jun 2006 15:35:51 +0200 Message-ID: <448ACAB5.3020301@karto.baug.ethz.ch> Date: Sat, 10 Jun 2006 09:35:49 -0400 From: Andreas Neumann User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: batik-users@xmlgraphics.apache.org Subject: Re: On Changing the Mouse Cursor Appearance References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Jun 2006 13:35:51.0226 (UTC) FILETIME=[CA3591A0:01C68C92] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > I tried including a cursor attribute in the rect element, such as: > > cursor="default"/> > > > yes, that cursor attribute is correct. But it is not clear from your example whether you have an event listener attached or not. You could either do it by using the "on..." event handler attributes or by using elt.addEventListener(listenertype,functionOrObject,bubblingOrCapturephase); > and I change the attribute's value to a type I want in the event handler: > > ( (Element) evt.getTarget() ).setAttribut("cursor", "w-resize" ); > > > the correct syntax would be: evt.target.setAttributeNS(null,"cursor","w-resize"); depending on what you want to do it might also make sense to have the event listener not on the rectangle but on the document or a parent group or an invisible element that is slightly bigger than your rectangle, because you probably want to set the cursor also on the edge or slightly outside the rectangle within a sensitive edge around the rectangle. > Is there anything I'm doing wrong or anything I'm lacking to do? > > I also tried including cursor and pointer-events (with value "fill") >attribute at the svg (root) element and also the latter to the rect element, >but nothing changes. > > no need to set the pointer-events attribute. The default value is "fill" anyway. Andreas -- ---------------------------------------------- Andreas Neumann Institute of Cartography ETH Zurich Wolfgang-Paulistrasse 15 CH-8093 Zurich, Switzerland Phone: ++41-44-633 3031, Fax: ++41-44-633 1153 e-mail: neumann@karto.baug.ethz.ch www: http://www.carto.net/neumann/ SVG.Open: http://www.svgopen.org/ Carto.net: http://www.carto.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org