Lukasz Matuszczak wrote:
Is there a way to get reference to JSVGCanvas object from BridgeContext reference (of course in case we present svg document in JSVGCanvas)?

I don't think there currently is.

I'm still trying to mix svg with swing, and create SwingGraphicsNode class which could draw a swing component in svg and handle events properly. I want to add my components to swing hierarchy somehow, so i've thought about getting reference to JSVGCanvas object and add children there. There is a BridgeUserAgent class in JSVGComponent, and I can get object of that class by calling getUserAgent(), but i don't see a way to obtain JSVGCanvas reference.

I don't either.

I don't want to subclass JSVGCanvas to provide my own UserAgent, because my solution should work also in squiggle browser.

Then I would suggest modifying the UserAgent for the Canvas and contribute your changes back. You will need a CLA on file with the Apache Software Foundation for patches to be considered[1].

[1] http://www.apache.org/licenses/#clas

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



Reply via email to