Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua.icon
Class ButtonFocusIcon

java.lang.Object
  extended by ch.randelshofer.quaqua.icon.MultiIcon
      extended by ch.randelshofer.quaqua.icon.ButtonFocusIcon
All Implemented Interfaces:
javax.swing.Icon

public class ButtonFocusIcon
extends MultiIcon

A focus ring icon with different visuals reflecting the selected state of an abstract button.

Version:
3.0.1 2006-02-15 Fixed creation of missing icons.
3.0 2005-10-17 Changed superclass to MultiIcon.
2.1 2005-06-25 Only paint focus for an abstract button, if its isFocusPainted method returns true.
2.0 2005-03-19 Reworked.
1.0 October 5, 2003 Create..
Author:
Werner Randelshofer

Field Summary
 
Fields inherited from class ch.randelshofer.quaqua.icon.MultiIcon
icons
 
Constructor Summary
ButtonFocusIcon(javax.swing.Icon[] icons)
          Creates a new instance.
ButtonFocusIcon(javax.swing.Icon e, javax.swing.Icon s)
          Creates a new instance.
ButtonFocusIcon(java.awt.Image[] images)
          Creates a new instance.
ButtonFocusIcon(java.awt.Image tiledImage, int tileCount, boolean isTiledHorizontaly)
          Creates a new instance.
 
Method Summary
protected  void generateMissingIcons()
           
protected  javax.swing.Icon getIcon(java.awt.Component c)
           
 
Methods inherited from class ch.randelshofer.quaqua.icon.MultiIcon
getIconHeight, getIconWidth, paintIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonFocusIcon

public ButtonFocusIcon(javax.swing.Icon e,
                       javax.swing.Icon s)
Creates a new instance. All icons must have the same dimensions. If an icon is null, nothing is drawn for this state.


ButtonFocusIcon

public ButtonFocusIcon(java.awt.Image[] images)
Creates a new instance. All icons must have the same dimensions. If an icon is null, nothing is drawn for this state.


ButtonFocusIcon

public ButtonFocusIcon(javax.swing.Icon[] icons)
Creates a new instance. All icons must have the same dimensions. If an icon is null, nothing is drawn for this state.


ButtonFocusIcon

public ButtonFocusIcon(java.awt.Image tiledImage,
                       int tileCount,
                       boolean isTiledHorizontaly)
Creates a new instance. The icon representations are created lazily from the image.

Method Detail

getIcon

protected javax.swing.Icon getIcon(java.awt.Component c)
Specified by:
getIcon in class MultiIcon

generateMissingIcons

protected void generateMissingIcons()
Specified by:
generateMissingIcons in class MultiIcon

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.