>>>>> "SB" == Siarhei Biarozkin <[EMAIL PROTECTED]> writes:
SB> We're using a JSvgCanvas subclass, originally, we thought we'd the
SB> grid in paintComponent(), however the following caused us to
SB> change that decision : - with ACTIVE_DYNAMIC state
SB> paintComponent() is called very frequently - the DOM document
SB> contains a custom group, as the first child of the svg doc
SB> element, which is the overall background - while I'm writing this
SB> I suddenly realize that the only solution for us is to insert a
SB> grid group into DOM, as a second child, between the background
SB> group and the remaining children
You could also easily add underlays to the JGVTComponent. This
doesn't address the 'paint alot' issue but I don't see how putting it
in the DOM helps that either :)
SB> Cheers Sergey Beryozkin
SB> ----- Original Message ----- From: "Thierry Kormann"
SB> <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]>
SB> Sent: Thursday, March 06, 2003 12:52 PM Subject: RE: Question on
SB> overlays
>> > I understand it's not part of the DOM, > To rephrase the
>> question : > assuming we have an overlay registered with the
>> canvas, what will be
SB> drawn
>> > first : a containing SVG document or whatever the overlay object
>> > draws ? We > need our grid be located "under" the DOM doc, if
>> overlay is asked to
SB> paint
>> > itself after the DOM has already been drawn, it's then not going
>> > to work for > us, and the only solution would be to insert a grid
>> group into the DOM
SB> as
>> > the first child of the svg root. > However, semantically, the
>> grid is really not part of the data the DOM > represents in our
>> case
>>
>> my recommendation would be to subclass the JSVGCanvas and override
>> the
SB> paint
>> methods in order to draw the grid first.
>>
>> Thierry.
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED] For
>> additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
SB> ---------------------------------------------------------------------
SB> To unsubscribe, e-mail: [EMAIL PROTECTED] For
SB> additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]