Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092416

Optimize non-uniform round rect rendering in Regions

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: fx2.0
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      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)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              flar Jim Graham
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Imported:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 weeks
                  2w
                  Remaining:
                  Remaining Estimate - 2 weeks
                  2w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified