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

2021-09-09 Thread Nir Lisker
On Tue, 7 Sep 2021 06:31:18 GMT, Ambarish Rapte wrote: >> Since the `Background` constructors take a list of `Paint` objects, I think >> saying a "single" `{@code Paint}` is helpful. I can see how adding "for >> `BackgroundFill`" (or maybe "as a `BackgroundFill`"?) might make it clearer. > >

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

2021-09-09 Thread Nir Lisker
On Fri, 3 Sep 2021 21:08:27 GMT, Kevin Rushforth wrote: >> modules/javafx.graphics/src/main/java/javafx/scene/layout/Background.java >> line 366: >> >>> 364: */ >>> 365: public static Background fill(Paint fill) { >>> 366: return new Background(new BackgroundFill(fill, null,

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

2021-09-07 Thread Nir Lisker
On Tue, 7 Sep 2021 08:37:31 GMT, Ambarish Rapte wrote: >> 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` ->

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

2021-09-07 Thread Ambarish Rapte
On Fri, 3 Sep 2021 21:06:38 GMT, Kevin Rushforth 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:

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

2021-09-07 Thread Ambarish Rapte
On Fri, 3 Sep 2021 21:04:13 GMT, Kevin Rushforth wrote: >> modules/javafx.graphics/src/main/java/javafx/scene/layout/Background.java >> line 357: >> >>> 355: >>> 356: /** >>> 357: * A convenience factory method for creating a background with a >>> single {@code Paint}. The

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

2021-09-03 Thread Kevin Rushforth
On Fri, 3 Sep 2021 13:23:39 GMT, Marius Hanl wrote: >> Nir Lisker has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Corrected comment tags > > modules/javafx.graphics/src/main/java/javafx/scene/layout/Background.java > line 366: > >>

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

2021-09-03 Thread Kevin Rushforth
On Thu, 2 Sep 2021 12:14:58 GMT, Ambarish Rapte wrote: >> Nir Lisker has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Corrected comment tags > > modules/javafx.graphics/src/main/java/javafx/scene/layout/Background.java > line 357: > >>

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

2021-09-03 Thread Marius Hanl
On Fri, 27 Aug 2021 17:40:48 GMT, Nir Lisker wrote: >> Added convenience factory factory methods for Background and Border. > > Nir Lisker has updated the pull request incrementally with one additional > commit since the last revision: > > Corrected comment tags

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

2021-09-02 Thread Ambarish Rapte
On Fri, 27 Aug 2021 17:40:48 GMT, Nir Lisker wrote: >> Added convenience factory factory methods for Background and Border. > > Nir Lisker has updated the pull request incrementally with one additional > commit since the last revision: > > Corrected comment tags Provided few suggestions for

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

2021-09-02 Thread Ambarish Rapte
On Fri, 27 Aug 2021 14:13:01 GMT, Kevin Rushforth wrote: >> Nir Lisker has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Corrected comment tags > > modules/javafx.graphics/src/main/java/javafx/scene/layout/Background.java > line 364: >

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

2021-08-27 Thread Nir Lisker
On Fri, 27 Aug 2021 14:15:06 GMT, Kevin Rushforth wrote: > I presume you will add some unit tests? Yes, when the implementation is settled upon. - PR: https://git.openjdk.java.net/jfx/pull/610

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

2021-08-27 Thread Nir Lisker
> Added convenience factory factory methods for Background and Border. Nir Lisker has updated the pull request incrementally with one additional commit since the last revision: Corrected comment tags - Changes: - all: https://git.openjdk.java.net/jfx/pull/610/files - new: