>>>>> "CR" == Christian Richards <[EMAIL PROTECTED]> writes:
CR> Well what i'm trying to do ATM is define a path, or a set of paths CR> to form a region for a map. when a user clicks or hovers over the CR> region, i am trying to get my call back to tell me which region it CR> is. based on the SVG standard of click or mouseover i have a CR> database that will provide additional information about the region CR> and display it in a swing window. so basically my callback just CR> needs to tell me what region it is so that i can show the proper CR> data in another window. This should be pretty easy to do. Thierry is the real expert so he may correct me, but where appropriate our DOM elements implement EventTarget. So if you get the DOM tree (JSVGComponent.getSVGDocument()), you can then traverse the DOM tree or use "getElementById" to find your element and call "org.w3c.dom.events.EventTarget.addEventListener" to register your listener for mouse clicks etc. Some stuff you might be able to do my annotating your SVG. So 'title' and 'desc' elements that are children of painted elements in the SVG document will be shown as 'tool-tips' in the JSVGCanvas (see 'samples/tests/spec/structure/toolTips.svg' in the Batik distribution). Good luck. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]