Hi,

>    Just to be clear TEXT_COMPOUND_ID is currently just a 'new Object()'. 
> So this would be a small additional change to make TEXT_COMPOUND_ID a 
> soft reference. As long as you currently always build your documents 
> as dynamic the change should be as simple as:
> 
>         Element e;
>         e = (Element)aci.getAttribute(TEXT_COMPOUND_DELIMITER);
> 
> With:
>         e = 
> (Element)((SoftReference)aci.getAttribute(TEXT_COMPOUND_ID)).get();

I look at the batik source code in related of TEXT_COMPONENT_ID, and a
little bit confused, so

- What is the purpose of TEXT_COMPOUND_ID, is it only as a marking to
indicate this part of text have different attribute style or it is
planned as a replacement for TEXT_COMPOUND_DELIMITER ?

- and the code  e =
(Element)((SoftReference)aci.getAttribute(TEXT_COMPOUND_ID)).get(); will
return plain Object instead of element, since TEXT_COMPOUND_ID is just
"New Object()"

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to