What I was hoping to do was to just 'plug-in' batik's JSVGCanvas with 
typical Swing behavior of adding components in a parent/child way and 
automagically have zooming behavior for free.  I'm not totally 
surprised it wasn't that easy, but I'm at a dead end of "easy" things 
to try.

What I need to do:

1) Add and remove predefined graphical 'widgets' (which are predefined 
SVG files) onto a given background, viewing the end result.  Picture 
a bookcase and adding/removing shelves from it, where in straight 
Swing one could merely add/remove JLabels from a JPanel

2) Be able able to use the current zooming functionality of JSVGCanvas 
on the 'background' to have the entire picture zoom at the same rate 
(i.e. the bookcase as well as the shelves resize).  
Optionally/preferrably an attempt to zoom one of the 'children' (i.e. 
shelf) would redispatch the zoom attempt back up to the parent.

I'm at probably an intermediate level with Swing, but very new to 
Batik (as of about 12 hours ago) and SVG; the closest I've come is to 
have everything zoom correctly when in the process of zooming, but 
once the mouse is released, the background is correctly zoomed, but 
the children revert back to their previous sizes and positions.

Is my strategy of mainting a parent/child hierarchy through Swing a 
bad strategy?  Or if not, what am I missing?  The other strategy 
would be to work with only one JSVGCanvas and manipulating the SVG 
for it on the fly; however, because of the need to manipulate it 
constantly, it seems like an error-prone thing to do.  The only 
posting I've come across that is close to mine went with the latter 
method, but possibly because that's what the user had started with.

Suggestions or pointers?  Or am I trying to use the wrong tool for the 
job?

Thanks,
Roberto

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to