Hi Tonny,

Tonny Kohar <[EMAIL PROTECTED]> wrote on 03/29/2006 12:31:16 AM:

> 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 ?

   Currently it is just marking what parts of text might have different
styling.

> - 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()"

   Correct, right now.

   I was going to make it a SoftReference but it felt very odd to be 
binding
a SoftReference and a hard reference.  So I decided to wait and check if
the move to remove TEXT_COMPOUND_DELIMITER was a go or not.  Since it 
looks
like it is I will make TEXT_COMPOUND_ID a SoftReference, and start 
replacing
use of the TCD, with TCI.

   Note that the SoftReference (even when cleared) serves just as well
for simply delimiting parts of the text that might be styled differently.


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

Reply via email to