code: @Override
      public void clearCache()
      {
          if (!clearLocalCacheOnly)
          {
              for (Painter<T> p : painters)
              {
                  if (p instanceof AbstractPainter)
                  {
                      AbstractPainter<?> ap = (AbstractPainter<?>) p;
                      ap.clearCache();
                  }
              }
          }
          super.clearCache();
      }
docs: <p>Clears the cache of this <code>Painter</code>, and all child
  <code>Painters</code>. This is done to ensure that resources
  are collected, even if clearCache is called by some framework
  or other code that doesn't realize this is a CompoundPainter.</p>
  
  <p>Call #clearLocalCache if you only want to clear the cache of this
  <code>CompoundPainter</code>