-
Enhancement
-
Resolution: Unresolved
-
P4
-
fx2.0
Prism graphics provides optimal rendering of the round rect backgrounds and borders of CSS-styled regions when all 4 sides or corner radii are the same.
But, CSS allows separate radii on each corner of a background and further, separate styles on each side of a background or border. In those cases we instead create a Path (separate radii) or 4 Paths (separate styles), and perform generic path rendering to render their backgrounds and borders.
It would be nice to implement the following methods on Prism Graphics:
fillRoundRect(x, y, w, h, ulw, ulh, urw, urh, lrw, lrh, llw, llh);
drawRoundRect(x, y, w, h, ulw, ulh, urw, urh, lrw, lrh, llw, llh, edgelist);
(where edgelist has bits set for TOP, RIGHT, BOTTOM, LEFT)
But, CSS allows separate radii on each corner of a background and further, separate styles on each side of a background or border. In those cases we instead create a Path (separate radii) or 4 Paths (separate styles), and perform generic path rendering to render their backgrounds and borders.
It would be nice to implement the following methods on Prism Graphics:
fillRoundRect(x, y, w, h, ulw, ulh, urw, urh, lrw, lrh, llw, llh);
drawRoundRect(x, y, w, h, ulw, ulh, urw, urh, lrw, lrh, llw, llh, edgelist);
(where edgelist has bits set for TOP, RIGHT, BOTTOM, LEFT)
- blocks
-
JDK-8181775 JavaFX WebView does not calculate border-radius properly
- Resolved
- relates to
-
JDK-8091758 Create a multi-rounded-rect node that allows separate specifications of arc width and height for each corner
- Open
-
JDK-8101353 JavaFX graphics performance improvements
- Closed