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

description of strokeDashArray attribute is unclear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • fx1.1
    • javafx
    • winXP

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: