public class CachingIconBundle extends Object implements IconBundle
Constructor and Description |
---|
CachingIconBundle(IconBundle iconBundle)
Create a new caching icon bundle which wraps the
specified icon bundle.
|
Modifier and Type | Method and Description |
---|---|
Image |
getImage(Component component,
IconTextDirection direction,
IconState state,
IconSize size)
Return an icon image in the specified icon text direction,
size, and state suitable for the specified component.
|
void |
invalidateCache()
Invalidate the cache of images.
|
public CachingIconBundle(IconBundle iconBundle)
iconBundle
- icon bundle to wrap, must not be nullpublic void invalidateCache()
public Image getImage(Component component, IconTextDirection direction, IconState state, IconSize size)
getImage
in interface IconBundle
component
- AWT or Swing component hint, if anydirection
- icon text direction, must not be nullstate
- icon state, must not be nullsize
- icon size, must not be nullCopyright (c) 2003-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).