Hi Eldem, You can be notified when a link is fired by registring a LinkActivated listener. If you want to change the default behavior you will need to replace the normal batik.bridge.UserAgent that the JSVGComponent constructs with your own that overrides "openLink" (see JSVGComponent.java you can problem just subclass the existing one and override createUserAgent in a subclass of JSVGCanvas/Component to return your subclass).
On Feb 17, 2013, at 5:15 PM, celdem <eldem...@gmail.com> wrote: > Good evening everyone; > > I have an svg document that includes link like that. > > < a xlink:href="trialref.svg" xlink:title="other diagram"> > > When i display my svg document on JSVGCanvas these links are also activated > and when click them canvas display changes and referenced image appears. > > My questions are ; > > 1.) is it possible to open this new link("trialref.svg") in new > window(jframe or something similar) using swing and JSVGCanvas ? > > 2.)if it is not possible I would like to disable them and put another event > to open referenced images in new jframe. i used > svgCanvas.setDisableInteractions(false) and svgCanvas.setEnabled(false) > however it did not work. Could you help me please ? > > Regards .... > > > > -- > View this message in context: > http://batik.2283329.n4.nabble.com/disabling-links-on-JSVGCanvas-tp4655474.html > Sent from the Batik - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org