JDK-8091758 : Create a multi-rounded-rect node that allows separate specifications of arc width and height for each corner
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2010-10-20
  • Updated: 2018-09-05
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
Relates :  
Description
Right now controls use a custom path to implement the CSS specification that allows the user to define different corner radii for each corner.  This makes it much harder to optimize the rendering of their backgrounds (and the effects that get applied to them).

Note that we currently only optimize a few aspects of rounded rectangles, but if they were enhanced so they could be the default background for the majority of controls then their optimizations would become more important.  Until we provide a specific primitive to handle this control background rendering case, though, we have very little chance of optimizing these operations for controls anyway so this is the first step towards control optimization.

This new capability does not need to be exposed via the JavaFX Rectangle{} node so this request does not necessarily involve any external API changes.
Comments
The CSS rounded corners are implemented through direct calls to a Prism Graphics object and RT-17507 will add the internal APIs for them to use to optimize their backgrounds. This issue to create an equivalent node is not necessary for optimizing CSS backgrounds and so does not need to be a Major priority, so I'm lowering it to Minor and changing it from Optimization to Feature.
25-10-2011

I just remembered that Region uses Rectangles and RoundRects where ever it can so if the radius's match then it uses RoundRect. So 90% of control painting should be Rects or Roundrects. The main shadow case we have is a multi-rounded-rect though.
21-10-2010