| java.lang.Object contrib.ch.randelshofer.quaqua.MultiIcon
All known Subclasses: contrib.ch.randelshofer.quaqua.ButtonStateIcon,
MultiIcon | abstract public class MultiIcon implements Icon(Code) | | An icon which paints one out of multiple icons depending on the state
of the component.
MultiIcon can lazily create the icons from a tiled image.
author: Werner Randelshofer version: 1.0.1 2006-02-14 Created tileCount icons from image. version: 1.0 October 17, 2005 Created. |
Field Summary | |
protected Icon[] | icons The icons from which we choose from. |
Constructor Summary | |
public | MultiIcon(Icon[] icons) Creates a new instance from an array of icons. | public | MultiIcon(Image[] images) Creates a new instance from an array of images. | public | MultiIcon(Image tiledImage, int tileCount, boolean isTiledHorizontaly) Creates a new instance. |
icons | protected Icon[] icons(Code) | | The icons from which we choose from.
This variable is null, if we are using a tiled image as our base.
|
MultiIcon | public MultiIcon(Icon[] icons)(Code) | | Creates a new instance from an array of icons.
All icons must have the same dimensions.
If an icon is null, an icon is derived for the state from the
other icons.
|
MultiIcon | public MultiIcon(Image[] images)(Code) | | Creates a new instance from an array of images.
All icons must have the same dimensions.
If an icon is null, an icon is derived for the state from the
other icons.
|
MultiIcon | public MultiIcon(Image tiledImage, int tileCount, boolean isTiledHorizontaly)(Code) | | Creates a new instance.
The icon representations are created lazily from the tiled image.
|
generateMissingIcons | abstract protected void generateMissingIcons()(Code) | | |
getIconHeight | public int getIconHeight()(Code) | | |
getIconWidth | public int getIconWidth()(Code) | | |
|
|