Lasse:
Could you detail what it is you want to do with the overlays. I can think of two uses for them:
1. Related to the SVG content. to draw Scale-unaware selection objects (such as a bounding box, a resize or reshape indicator, etc.) or elements that are not part of the drawing, such as guides. Or you want to annotate your SVG with Graphics2D objects, for some specific reason.
2. Not related to the SVG. That is, your SVG will be simply the "background image", for your Java 2D Graphics canvas.
With a little more information as to what it is you want to accomplish with the overlays, we may be able to help you better.
I have done selection objects both as an overlay and as part of the SVG document, so, although the overlay seems like a simpler solution, event handling makes the option of having the selection elements as part of the SVG a better solution (but you have to make these objects "scale and pan aware" so they remain the same size regardless of your SVG scale factor.)
Andres.
On Feb 28, 2005, at 6:04 AM, Lasse Riis wrote:
Thomas DeWeese wrote:
Using an overlay is pretty trivial, your problems seem to mostly be with the Java language. This is not an appropriate forum to learn Java. There are _lots_ of resources for that.
I feared this would come up :)
Yes, I thinks this is the core of my problem; I'm learning OOP, Java and Batik all at the same time, programming my first GUI app. I apologize If I've been too annoying with my questions. But I hope to return with more, once I get my Java straight.
But in order to get that, I'd like to know if anyone has knowledge of projects that use Batik to do something similar to what I'm trying to do; using and overlay to draw (and perhaps move) some graphics over an SVG-image. I'd like to study some source code. I think that would help me a lot.
Doing all sorts of boring classes using Java tutorials will not help me getting this GUI done :)
Lasse Riis
P.S. Our mailserver went down, and it seems this message didn't reach the mailinglist. So if this is a duplicate, I apologize.
--------------------------------------------------------------------- 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]