RFR: 8341670: [Text, TextFlow] Public API for Text Layout Info [v3]

Andy Goryachev angorya at openjdk.org
Wed Oct 9 21:08:16 UTC 2024


On Wed, 9 Oct 2024 20:59:01 GMT, Phil Race <prr at openjdk.org> wrote:

>> Clients will usually obtain a LayoutInfo in order to respond to some user action or an update of the target node.
>> LayoutInfo should be considered an ephemeral snapshot, to be used and immediately discarded.
>> Clients should always obtain a new one when they need to respond again as likely the trigger to respond again means the target node has changed.
>
> Although I don't see the harm in being more efficient.

I hear a suggestion to create a think wrapper/proxy instead of the snapshot, right?

This might, in fact, be a better idea.  The API stays the same.
Let me think.

Thanks!

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1596#discussion_r1794229813


More information about the openjfx-dev mailing list