I've been doing some more testing and I can now get the canvas to 'jump' back to the top of the document when I click one of the buttons. But, and here's the but... It doesn't matter what fragment identifier I use: #name #svgView(viewBox(...)) It always jumps to the top. It's as though it only understands/sees the '#' and not the rest! Regards Philip Fennell
________________________________ From: Fennell, Philip Sent: Tue 25/10/2005 14:48 To: [email protected] Subject: RE: Trouble getting the JSVGScrollPane to jump to a different point in the view. Thomas, Thanks for the response. I have tried embedded links using the follwoing fragment identifiers: xlink:href="#name" which targets an <svg:svg id="name">... xlink:href="#svgView(viewBox(x,y,w,h))" xlink:href="#name" that targets an <svg:view id="name" viewBox="x y w h"/> I know that the linking mecanism is working because I get error messages if I try and link to an external server. But the question is, how do I activate that type of behaviour from outside of the canvas? How do I tell the canvas that I want it's current fragment identifier to be '#name' (or any of the above) and that it then updates the view accordingly and scrolling if necessary. You can do this in a conventinal web browser by setting the fragment identifier in the hash field of the location object and it behaves as though you have physically followed a link. Now I have tried making the changes under the UpdateManager so that the view actualy gets updated but without anymore success. Regards Philip Fennell ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tue 25/10/2005 14:11 To: [email protected] Subject: Re: Trouble getting the JSVGScrollPane to jump to a different point in the view. Hi Philip, I am very surprised by your results. I would have expected all of the listed methods to work. Can you provide a small stand-alone test that shows the problem? (Main.java and sample content). Also you don't say what you are using for your fragment, are you using 'ids' or are you using viewBox linking? "Fennell, Philip" <[EMAIL PROTECTED]> wrote on 10/25/2005 07:40:01 AM: > I have a Java app that uses Batik's JSVGScrollPane to display an SVG document. [...] > I want the 'paging' buttons to 'scroll' the view to the correct place. I have > tried various means to achieve this (some sane and some by desperation): > > setFragmentIdentifier > setURI > > and > > also embedding <a> links into the view who's target is the 'view' as defined > by a view element with an appropriate viewBox attribute, that I want to jump to. > > the first two attempts (above) achieved nothing and when I use embedded links, > Batik complains if it cannot find a corresponding ID within the document. > However, If it does find one, it does nothing. > > Firstly, how can I get the Swing JButtons to 'jump' scroll the view by > utilising view elements defined in the svg? > > Secondly, if the above can't be done, how can I get Batik to act upon the > links I'm clicking in the view? > > > Hoping for some help here. > > > Many thanks in advance, > > Philip Fennell > > > --------------------------------------------------------------------- > 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]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
