Howdy all,

I notice that in JGVTComponent, Overlays are only painted iff 'image !=
null'.

I have to ask: is this necessary/appropriate?  Would it be possible /
appropriate to have Batik always paint overlays?

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]

Reply via email to