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

Optimize non-uniform round rect rendering in Regions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • fx2.0
    • javafx

      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)

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

              Created:
              Updated:
              Imported:

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