Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-985

Dark Gray and Light Gray standard colors are not supported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.4
    • 2.1, 2.0.5
    • wtk
    • None
    • All

    Description

      Looking at GraphicsUtilities.decodeColor(String) it says that any of the standard Java Color values is supported. But, trying to use "darkgray" or "lightgray" doesn't work.
      The underlying reason is that the lookup is done using the lowercase value of the input string and trying to find the corresponding field name in the Color class. But these two static fields are named "darkGray" and "lightGray" (mixed case) and so the lookup doesn't work.
      Need to special case these two values. Wouldn't hurt to support the British spellings ("darkgrey" and "lightgrey") either.

      Attachments

        1. 985.diffs
          2 kB
          Roger Lee Whitcomb

        Issue Links

          Activity

            People

              rwhitcomb Roger Lee Whitcomb
              rwhitcomb Roger Lee Whitcomb
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: