Details

    • Type: Bug Bug
    • 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,024

      Description

      It would be useful to have an EmptyPainter that does no painting.

      There may be API methods that would benefit from returning an EmptyPainter as
      opposed to null. It also would allow us to ensure that certain properties are
      never null, by replacing nulls with EmptyPainter. This can make the APIs more
      defensive and protected.

      Karl

        Issue Links

          Activity

          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: