Hi Ruben,

the most simple way would possibly be to use the events defined in the
SVG spec:
  http://www.w3.org/TR/SVG11/script.html#EventAttributes
and assign the call of an ECMAScript function, you define in the SVG itself.

If you need to handle the event in java, use the Interpreter

svgCanvas.getUpdateManager().getBridgeContext()
.getInterpreter("text/ecmascript").bindObject(String name, Object object);

to assign your respective java method (object) to an ECMScript variable
(name) and then call that method from the ECMAScript function thats
triggered by the event (like 'onmouseover="myECMAScriptFun();"').

Cheers,

     Robert

> Hi!
> 
> I'm building an application using JSVGCanvas. Now I want my application
> to react when the mouse is hovering the elements of SVG. I want to
> handle an event that is sent when the mouser is over an element (and I
> need to clearly identifiy which element it is).
> 
> Assumming this is possible, is there a cookbook or a snippet on this?
> 
> Thank you!
> Ruben
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to