swingx
  1. swingx
  2. SWINGX-1025

Consider adding Painters to contain Painter singleton flyweights

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 1.6.1
    • Component/s: Painter
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1,025

      Description

      We should consider adding a Painters class to contain Painter singleton
      flyweights. This is the same design pattern we used with StringValues and
      IconValues.

      Possible singleton flyweights include:
      EmptyPainter
      Colors (could have a MattePainter for each defined Color in the Color class)
      System gradients (could have a MatterPainter for each gradient in PainterUtils)

      Other ideas welcome.

      Karl

        Issue Links

          Activity

          Hide
          Karl Schaefer added a comment -

          If we add EmptyPainter, it may be best to do so in this context. The target
          milestone should be the same for both. Currently, setting to 0.9.x.

          Karl

          Show
          Karl Schaefer added a comment - If we add EmptyPainter, it may be best to do so in this context. The target milestone should be the same for both. Currently, setting to 0.9.x. Karl
          Hide
          Karl Schaefer added a comment -

          Taking it.

          Show
          Karl Schaefer added a comment - Taking it.
          Hide
          Karl Schaefer added a comment -

          Issues 1025 and 1024: Created a Painters zoo for Painter flyweights and created
          an EMPTY_PAINTER flyweight implementation.

          src/java/org/jdesktop/swingx/painter/Painters.java

          Committed revision 3590.

          Show
          Karl Schaefer added a comment - Issues 1025 and 1024: Created a Painters zoo for Painter flyweights and created an EMPTY_PAINTER flyweight implementation. src/java/org/jdesktop/swingx/painter/Painters.java Committed revision 3590.
          Hide
          kleopatra added a comment -

          cleanup target milestone of fixed issues(from post to 1.x)

          Show
          kleopatra added a comment - cleanup target milestone of fixed issues(from post to 1.x)

            People

            • Assignee:
              Karl Schaefer
              Reporter:
              Karl Schaefer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: