xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MichaƂ Piotrowski <bast...@3miasto.net>
Subject Re: Mouse hit detectors
Date Wed, 24 Oct 2001 08:35:41 GMT
Thomas E Deweese wrote:

> MP> How can I write own mouse hit detector for my extension without
> MP> rewriting org.apache.batik.gvt.ShapeNode?


>     Well I must admit that I haven't tried to write a hit detector for
> an extension (and you aren't very clear on what the exact problem is)
> so this response may be a bit abstract, but...
>    
> 1) It isn't clear why ShapeNode's contains method is inappropriate, it
>    seems to return true when the click is inside the paintedArea.
>    This seems like a really reasonable implementation and as long as
>    you are interested in clicks in a particular geometric area should
>    suffice...


Drawn shape in my extension is quite small (thin lines) and it is hard 
to click exactly inside my element, so I want to treat some space 
around my element as area which belongs to it.

-- 
Michal Piotrowski

===- mailto:bastian@3miasto.net -====
=- http://www.3miasto.net/~bastian -=


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message