API REVIEW REQUEST: Public API for Backgrounds and Borders on Region
david.grieve at oracle.com
Mon Aug 27 09:15:05 PDT 2012
On Aug 27, 2012, at 10:25 AM, Richard Bair wrote:
> On Aug 26, 2012, at 11:07 PM, Tom Schindl wrote:
>> Am 26.08.12 23:12, schrieb Jonathan Giles:
>> Why not name if getTopLeftVerticalRadiusType() and return there an enum?
>> I guess there are more values who can have an absolute and percentage
>> value so they'd all use the same enum.
> I think it would only be a two-valued enum, in which case what advantage does it have over a boolean? I believe that besides percentage, all other CSS values are reduced to an actual literal value in the end. Even "em" based computations are done by the CSS engine at the time that the value is looked up in the CSS engine.
em and percent based computations are done at the time the value is applied (which is likely what you are saying). Some computations have to be carried out on the SG side if that computation depends on the actual size of the Node. Background image position is one such computation that comes to mind. BorderRadii is in this category as well if an "as percentage" value is a percentage of the width or height of the Node. This is not clear from the javadoc.
David Grieve | Principal Member of Technical Staff
Oracle Java Client UI and Tools
Durham, NH 03824
Oracle is committed to developing practices and products that help protect the environment
More information about the openjfx-dev