code: public void setCacheable(boolean cacheable) {
          boolean old = isCacheable();
          this.cacheable = cacheable;
          firePropertyChange("cacheable", old, isCacheable());
          if (!isCacheable()) {
              clearCache();
          }
      }
docs: <p>Sets whether this <code>AbstractPainter</code> can be cached as an image.
  If true, this is treated as a hint. That is, a cacheable may or may not be used.
  The {@link #shouldUseCache} method actually determines whether the cacheable is used.
  However, if false, then this is treated as an absolute value. That is, no
  cacheable will be used.</p>
  
  <p>If set to false, then #clearCache is called to free system resources.</p>
  
  @param cacheable the cache flag