| java.lang.Object contrib.ch.randelshofer.quaqua.MultiIcon contrib.ch.randelshofer.quaqua.ButtonStateIcon
ButtonStateIcon | public class ButtonStateIcon extends MultiIcon (Code) | | An Icon with different visuals reflecting the state of the AbstractButton
on which it draws on.
author: Werner Randelshofer version: 3.1 2005-12-08 Draw pressed state if model is armed, instead of version: drawing pressed state if model is armed and pressed. version: 3.0 2005-10-17 Changed superclass to MultiIcon. version: 2.0.1 2005-10-02 Used Enabled image for Pressed-Unarmed state. version: 2.0.1 2005-09-11 generateMissing icons can now deal with only one version: provided icon image. version: 2.0 2005-03-19 Reworked. version: 1.0 October 5, 2003 Create.. |
ButtonStateIcon | public ButtonStateIcon(Icon e, Icon ep, Icon es, Icon eps, Icon d, Icon ds)(Code) | | Creates a new instance.
All icons must have the same dimensions.
If an icon is null, an icon is derived for the state from the
other icons.
|
ButtonStateIcon | public ButtonStateIcon(Image[] images)(Code) | | Creates a new instance.
All icons must have the same dimensions.
The array indices are used to represente the following states:
[0] Enabled
[1] Enabled Pressed
[2] Enabled Selected
[3] Enabled Pressed Selected
[4] Disabled
[5] Disabled Selected
[6] Enabled Inactive
[7] Enabled Inactive Selected
[8] Disabled Inactive
[9] Disabled Inactive Selected
If an array element is null, an icon is derived for the state from the
other icons.
|
ButtonStateIcon | public ButtonStateIcon(Icon[] icons)(Code) | | Creates a new instance.
All icons must have the same dimensions.
If an icon is null, nothing is drawn for this state.
|
ButtonStateIcon | public ButtonStateIcon(Image tiledImage, int tileCount, boolean isTiledHorizontally)(Code) | | Creates a new instance.
The icon representations are created lazily from the image.
|
generateMissingIcons | protected void generateMissingIcons()(Code) | | |
Fields inherited from contrib.ch.randelshofer.quaqua.MultiIcon | protected Icon[] icons(Code)(Java Doc)
|
|
|