xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Armhold <armh...@cs.rutgers.edu>
Subject Re: queston on Interactor and Overlay
Date Fri, 05 Sep 2003 10:54:04 GMT
Thomas DeWeese wrote:

 > What you really have is an interactor that can do one of two things.
 > On mouse down your interactor starts, if the mouse moves you setup
 > to add a line, when the mouse goes up - if there has been motion you
 > want to draw the line - if there has not been motion you want to
 > fire the link under cursor (if there is one).

OK, that sounds doable... if it's possible to figure out whether there
is currently a link under the cursor.  Since we are dealing with AWT
MouseEvents I suspect this is not straightforward.

 > So I took a look at the source.  linkActivationListers are notifed
 > when a link is traversed but the link is still traversed - so this
 > might be useful if you wanted to create a history log or some such.

So does that mean that JSVGComponent is trying to launch the browser
itself?  And I'm merely getting a log message about it?

 > I think what you want to do is provide a custom SVGUserAgent and
 > implement openLink to forward the link to showDocument.  Right now
 > the Canvas tries to open the link and apparently fails - not sure
 > why you don't get notified some how.

 From the API, it looks like implementing SVGUserAgent is not trivial.
I see a org.apache.batik.bridge.UserAgentAdaptor that has all the
required methods, but it seems to implement UserAgent rather than
SVGUserAgent, so maybe this is really not the right path to take.

Thanks again for your time.

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message