On Sun, 19 Sep 2021 10:53:02 GMT, Marius Hanl <mh...@openjdk.org> wrote:
>>> > ``` >>> > public static Border stroke(Paint stroke, double width) { >>> > ``` >>> > ... >>> > But I really want to hear other opinions. This can also be a follow up. :) >>> >>> I don't mind adding this variant, but it needs consensus. >> >> I agree that it needs consensus, so the question is how many apps would use >> it from code (as opposed to CSS), and be satisfied with the other defaults. >> I don't object to adding a 2nd variant that takes a stroke width as long as >> we stop there. I don't want variants that take style, or corner radii, or >> insets, etc. (at that point, just use the existing API). > >> > > ``` >> > > public static Border stroke(Paint stroke, double width) { >> > > ``` >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > ... >> > > But I really want to hear other opinions. This can also be a follow up. >> > > :) >> > >> > >> > I don't mind adding this variant, but it needs consensus. >> >> I agree that it needs consensus, so the question is how many apps would use >> it from code (as opposed to CSS), and be satisfied with the other defaults. >> I don't object to adding a 2nd variant that takes a stroke width as long as >> we stop there. I don't want variants that take style, or corner radii, or >> insets, etc. (at that point, just use the existing API). > > I agree. For me this would be the last useful variant I often needed in daily > programming. Everything else should use the normal constructor as it is there > for very specialized background/border. @Maran23 I think that you should ask on the mailing list if others want that variant. I didn't see any discussion on this when I proposed these methods. ------------- PR: https://git.openjdk.java.net/jfx/pull/610