org.dishevelled.iconbundle
Interface IconBundle
- All Known Implementing Classes:
- CachingIconBundle, PNGIconBundle, ShapeIconBundle
public interface IconBundle
A bundle of variants of a particular icon image, for
different text directions, sizes, and states. IconBundles
are expected to dynamically create variants for which a
source image does not exist, by rescaling or transforming
existing images.
- Version:
- $Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
- Author:
- Michael Heuer
getImage
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. The
specified AWT or Swing component may be null.
- Parameters:
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 null
- Returns:
- an icon image suitable for the specified component
Copyright (c) 2003-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).