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

description of strokeDashArray attribute is unclear

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx1.1
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      winXP

      Description

      Franca b03 promotion API contains next description of Shape's strokeDashArray attribute:

      Defines the array representing the lengths of the dash segments. Alternate entries in the array represent the user space lengths of the opaque and transparent segments of the dashes. As the pen moves along the outline of the Shape to be stroked, the user space distance that the pen travels is accumulated. The distance value is used to index into the dash array. The pen is opaque when its current cumulative distance maps to an even element of the dash array and transparent otherwise.
      [1.0]

      Profile: common

      It is unclear what will happen if number of dash elements is odd. For example in SVG it behaves like the dash array is "doubled" so it's length becomes even.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              flar Jim Graham
              Reporter:
              ailjin Artem Iljin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: