High performance text component

Richard Bair richard.bair at oracle.com
Wed Sep 5 09:10:19 PDT 2012


>>> Felipe, we should update the documents on the WIKI to refer to the "Rich Text API" instead of DOM API because I fear this can get confusing! Other than those of us internally who have argued for / against the Attributed String style vs. the DOM style, most people probably won't get the subtlety, having missed the context.
>> 
>> Done, 
>> Should I rename Div to Paragraph, Span to Text ?
> 
> We already have 'Text'. Is this different or could we reuse what's already there.

That is an open question, although personally I would prefer that we just reuse the Text object. We have to make sense of a Text placed in a "Paragraph" anyway, even if we had a separate Span, so it seems more sensible to just make Text make sense.

> Just checking: the 'Paragraph' isn't just a FlowPane with special support for line wrapping text is it? I.e FlowPane.setWordWrapEnabled(true). 

I imagine the implementation is completely different, and the spacing etc parameters on FlowPane might not be sensible for a Paragraph. Plus, it is in the wrong package (we will need package private access to Text internals).

Richard


More information about the openjfx-dev mailing list