Howdy all,
I notice that in JGVTComponent, Overlays are only painted iff 'image != null'.
I would be surprised if an empty SVG Document (just <svg [...] />) didn't produce an image... Ohh it needs to have a width and height doesn't it?
But this shouldn't be a big deal to do...
I have to ask: is this necessary/appropriate? Would it be possible / appropriate to have Batik always paint overlays?
I don't have a strong feeling on this. It could be done, let me know if you still want it given the above observations.
The reason I ask is because I'm trying to create a SVG editor, and at times I need to draw an Overlay even if no objects yet exist in the SVG (e.g., if the user starts with a blank SVG, then draws a rectangle).
I suppose this might be solved by me putting a large transparent rectangle in at the back, but... at the moment, I've worked around this by overriding paintComponent() in my editor component, and having it paint overlays even if image==null. But it feels like a hack.
Thanks!
Ciao, Bibek
--------------------------------------------------------------------- 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]