JDK-8092416 : Optimize non-uniform round rect rendering in Regions
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2011-10-19
  • Updated: 2020-03-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Relates :  
Description
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)
Comments
Should attempt in 2.1 or 2.2
25-10-2011