A couple of questions about Interactor & Overlay.
1) When I add an Interator to a JSVGComponent why does my LinkActivationListener stop responding? If I modify my Interactor to always return false from startInteraction() my LinkActivationListener starts working again. Apparently when one Interactor reacts to an event none of the others have the opportunity to do so.
Interactors are intended to be used for modal interaction. If you aren't interested in being modal you can use normal AWT event stuff.
2) When my LinkActivationListener launches an external browser in response to a URL click, why afterwards does the JSVGComponent.getUpdateManager() always return null? I am setting my document state to ALWAYS_DYNAMIC in the constructor, and it seems to work fine until I launch the external browser.
I'm guessing some of the normal link handling code is still being called (you can hyperlink between SVG documents in the Canvas) and this code is, as it's first step, shutting down the UpdateManager, your code must head off the replacement of the document however. This may represent a bug in the canvas or your code.
3) Is there any advantage to implementing Interactor vs Overlay for creating a "drawing tool" on top of JSVGComponent? It seems that you must implement Interactor in order to see the events, and that Overlay is merely a matter of painting (which you can easily do without implementing that interface- just grab the component's Graphics2D and paint away.) I notice that some of the batik examples implement both (e.g. AbstractZoomInteractor, which extends InteractorAdaptor, but also implements Overlay via an enclosed class.)
I would not recomend grabbing the component's Graphics2D and painting. This will likely lead to poor behaviour if the area of document drawn on is updated due to events, etc. If you use the overlay interface your code will be called when ever the area it covers is repainted due to update events. Try this select some 'animated' text (I like to select the 'batik rules' in samples/extensions/gears.svg).
These questions apply to batik-1.5 from CVS. Thanks!
Hope this helps!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]