High performance text component

Felipe Heidrich felipe.heidrich at oracle.com
Thu Aug 30 14:59:36 PDT 2012


Hi Richard,

On Aug 30, 2012, at 12:05 PM, Richard Bair wrote:

> 
> Jasper suggested "TextFlow" for DIV, you can add it to the potential names list.
> 

Done.

> Extending region to get CSS is a good thing, but Region has width / height and is resizable. We could move CSS support up to Parent, or make sense of DIV having a specific width and height (width is useful because we then wouldn't need "wrappingWidth" -- ie, they are the same thing, and it would be resizable so adding it to a layout container would perfect. But what to do about the height? If the height isn't right, do we just flow the text beyond the given height? Kind of a weird case). Or we can add CSS Background / Border support to TextFlow independent of the Region.
> 


I thought about this a little bit yesterday, if we choose to make Div a subclass of Region we would probably remove setWrappingWidth(double) and add:
setWrapMode (none | word | character) or use CSS names (word-break, word-wrap).

As for the relationship between the width and height, the way I thought, if word wrap is requested then content bias is set to horizontal, otherwise is null.

Does that make any sense ?
as I said,  I didn't think about this very much…

Felipe

> 
> 
> On Aug 29, 2012, at 4:51 PM, Felipe Heidrich wrote:
> 
>> Hi, 
>> 
>> (I'm finally able to edit the openjfx wiki!)
>> 
>> We are still in a very early stage but this is what we are planning for Rich Text:
>> 
>> https://wikis.oracle.com/display/OpenJDK/Rich+Text
>> 
>> Let me know if you have any suggestions or concerns.
>> 
>> Regards,
>> Felipe
>> 
>> 
>> On Aug 17, 2012, at 9:37 AM, Felipe Heidrich wrote:
>> 
>>> 
>>> On Aug 15, 2012, at 2:08 PM, André Thieme wrote:
>>> 
>>>> Am 10.08.2012 18:59, schrieb Felipe Heidrich:
>>>>> Sorry for the delay,
>>>>> 
>>>>> I'm trying to get edit rights to our public wiki but the process is
>>>>> taking much longer that I expected.
>>>> 
>>>> Hi Felipe, can you estimate an ETA for this?
>>>> 
>>>> 
>>> 
>>> Sorry, it seems that someone somewhere has ignored my request… I will try again :-(
>>> 
>> 
> 



More information about the openjfx-dev mailing list