Thierry Kormann wrote:
>>How can I write own mouse hit detector for my extension without
>>rewriting org.apache.batik.gvt.ShapeNode?
>
> You have a setGraphicsNodeHitDetector method on GraphicsNode.
Though this
> part of the API has not been really tested (we don't support the
> pointer-event property yet) - you should be able to do things by
setting your
> own GraphicsNodeHitDetector implementation.
Thanks. That works fine. But I still don't know how to set my hit
detector only for one type of node (my extension). For now I'm using
construction like this:
GVTTreeWalker gvtwalker=new GVTTreeWalker(jsvgcanv.getGraphicsNode());
GraphicsNode gnode;
while ((gnode=gvtwalker.nextGraphicsNode())!=null) {
gnode.setGraphicsNodeHitDetector(hit_detect);
}
This allows me to set my hit detector for all nodes. Is there a way to
check what is GraphicsNode's source (is it my extension or standard
SVG tag)?
--
Michal Piotrowski
===- mailto:[EMAIL PROTECTED] -====
=- http://www.3miasto.net/~bastian -=
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]