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

Rendering artifacts when using Polygon with many points in small area on Windows

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:

      Description

      When we are attempting to render a line chart using a Polygon with around 11,000 points in an area around 60 pixels wide with anti-aliasing enabled we get some rendering artifacts. It seems to be extending certain segments further along the x-axis. The exact shape of the artifacts depend somewhat on the exact distribution of the data points along the small area, but they are usually of the same form.

      Artifacts of the same nature are seen when using a Path2D with similar density of paths to pixels.

      Using several small objects like Line2D objects for each individual line doesn't cause those rendering issues.

        Attachments

        1. artifacts.PNG
          artifacts.PNG
          0.3 kB
        2. chart-detail.PNG
          chart-detail.PNG
          6 kB
        3. full-chart.PNG
          full-chart.PNG
          4 kB
        4. largePolygon
          81 kB
        5. Test.java
          1 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hdafgard Henrik Dafgård
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: