xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ma zhenduo" <mazd_w...@yahoo.com>
Subject Re: The bug about "nodeHitAt" and "transform" had not been gotten rid of.
Date Sat, 16 Mar 2002 01:06:06 GMT
Thank you very much.
You are right.
Now I f  I "nodeHitAt" from root, I will find right node.
If  I "nodeHitAt" from that translated node, I can not find it.
Would you tell me how to apply the transform to your point before calling
nodeHitAt?

----- Original Message -----
From: "Thomas E Deweese" <thomas.deweese@kodak.com>
To: "Batik Users" <batik-users@xml.apache.org>
Sent: Wednesday, March 13, 2002 8:05 PM
Subject: The bug about "nodeHitAt" and "transform" had not been gotten rid
of.


> >>>>> "mz" == ma zhenduo <mazd_work@yahoo.com> writes:
>
> mw> I find there are a bug with batik-1.1.1(18-Dec-2001 ) and
> mw> batik-1.5beta.  GraphicsNode#nodeHitAt can't find these node that
> mw> has a "transform" attribute.
>
>     You don't give much information on the context in which you think
> this bug exists.  So I know that onclick and what not work for SVG
> elements that are transformed (which become GraphicsNodes with a
> transform).
>
>     I suspect that the problem is you are passing coordinates in the
> root GraphicsNode's coordinate space as opposed to the GraphicsNode's
> local coordinate system.  Put in other words it is your responsability
> to apply the transform to your point before calling nodeHitAt.  You
> may not like this but it is generally significantly more effiecent
> than transforming the point from the root for each node if you are
> walking the whole gvt tree.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
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