RFR: 8272870: Add convenience factory methods for border and background [v2]

Ambarish Rapte arapte at openjdk.java.net
Tue Sep 7 08:40:35 UTC 2021

On Fri, 3 Sep 2021 21:06:38 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> modules/javafx.graphics/src/main/java/javafx/scene/layout/Background.java line 361:
>>> 359:      *
>>> 360:      * @implSpec This call is equivalent to {@code new Background(new BackgroundFill(fill, null, null));}.
>>> 361:      * @param fill the fill of the background
>> `@param fill Any Paint. If null, the value Color.TRANSPARENT is used.`
>> Picked from BackgroundFill constructor's doc
> Good idea to indicate what happens on `null`, although that might be better in the description?

I think that should be fine too.
How should we describe the @param in that case.
`@param fill Any Paint as BackgroundFill`  -> Does this sound good ?


PR: https://git.openjdk.java.net/jfx/pull/610

More information about the openjfx-dev mailing list