Sky View Café - Java

org.shetline.gui.laf.zinc
Class ZincSelectableButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
          extended by javax.swing.plaf.basic.BasicButtonUI
              extended by javax.swing.plaf.basic.BasicToggleButtonUI
                  extended by javax.swing.plaf.basic.BasicRadioButtonUI
                      extended by javax.swing.plaf.metal.MetalRadioButtonUI
                          extended by org.shetline.gui.laf.zinc.ZincSelectableButtonUI
Direct Known Subclasses:
ZincCheckBoxUI, ZincRadioButtonUI

public abstract class ZincSelectableButtonUI
extends MetalRadioButtonUI


Nested Class Summary
protected static class ZincSelectableButtonUI.IconMap
           
 
Field Summary
protected  Color background
           
protected  Color border
           
protected  Color focus
           
protected  Color highlight
           
protected static HashMap<String,String> keyCache
           
protected  Color mark
           
protected  Icon selectedDisabled
           
protected static ZincSelectableButtonUI.IconMap selectedDisabledCache
           
protected  Icon selectedEnabled
           
protected static ZincSelectableButtonUI.IconMap selectedEnabledCache
           
protected  Icon selectedFocused
           
protected static ZincSelectableButtonUI.IconMap selectedFocusedCache
           
protected  Icon selectedPressed
           
protected static ZincSelectableButtonUI.IconMap selectedPressedCache
           
protected  Icon unselectedDisabled
           
protected static ZincSelectableButtonUI.IconMap unselectedDisabledCache
           
protected  Icon unselectedEnabled
           
protected static ZincSelectableButtonUI.IconMap unselectedEnabledCache
           
protected  Icon unselectedFocused
           
protected static ZincSelectableButtonUI.IconMap unselectedFocusedCache
           
protected  Icon unselectedPressed
           
protected static ZincSelectableButtonUI.IconMap unselectedPressedCache
           
 
Fields inherited from class javax.swing.plaf.metal.MetalRadioButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
ZincSelectableButtonUI()
           
 
Method Summary
protected  BasicButtonListener createButtonListener(AbstractButton b)
           
protected abstract  void drawFocusIndicator(Graphics2D g, int size, boolean selected)
           
protected abstract  void drawSelectionIndicator(Graphics2D g, int size, boolean enabled)
           
protected abstract  void drawUnselected(Graphics2D g, int size, boolean enabled)
           
protected  Color fadeToBackground(Color color, boolean fade)
           
 Dimension getMinimumSize(JComponent c)
           
 void installDefaults(AbstractButton b)
           
static void resetIcons()
           
 
Methods inherited from class javax.swing.plaf.metal.MetalRadioButtonUI
createUI, getDisabledTextColor, getFocusColor, getSelectColor, paint, paintFocus, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize, getPropertyPrefix
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

background

protected Color background

border

protected Color border

focus

protected Color focus

highlight

protected Color highlight

mark

protected Color mark

selectedDisabled

protected Icon selectedDisabled

selectedFocused

protected Icon selectedFocused

selectedEnabled

protected Icon selectedEnabled

selectedPressed

protected Icon selectedPressed

unselectedDisabled

protected Icon unselectedDisabled

unselectedFocused

protected Icon unselectedFocused

unselectedEnabled

protected Icon unselectedEnabled

unselectedPressed

protected Icon unselectedPressed

keyCache

protected static final HashMap<String,String> keyCache

selectedDisabledCache

protected static ZincSelectableButtonUI.IconMap selectedDisabledCache

selectedFocusedCache

protected static ZincSelectableButtonUI.IconMap selectedFocusedCache

selectedEnabledCache

protected static ZincSelectableButtonUI.IconMap selectedEnabledCache

selectedPressedCache

protected static ZincSelectableButtonUI.IconMap selectedPressedCache

unselectedDisabledCache

protected static ZincSelectableButtonUI.IconMap unselectedDisabledCache

unselectedFocusedCache

protected static ZincSelectableButtonUI.IconMap unselectedFocusedCache

unselectedEnabledCache

protected static ZincSelectableButtonUI.IconMap unselectedEnabledCache

unselectedPressedCache

protected static ZincSelectableButtonUI.IconMap unselectedPressedCache
Constructor Detail

ZincSelectableButtonUI

public ZincSelectableButtonUI()
Method Detail

resetIcons

public static void resetIcons()

installDefaults

public void installDefaults(AbstractButton b)
Overrides:
installDefaults in class MetalRadioButtonUI

drawUnselected

protected abstract void drawUnselected(Graphics2D g,
                                       int size,
                                       boolean enabled)

drawSelectionIndicator

protected abstract void drawSelectionIndicator(Graphics2D g,
                                               int size,
                                               boolean enabled)

drawFocusIndicator

protected abstract void drawFocusIndicator(Graphics2D g,
                                           int size,
                                           boolean selected)

fadeToBackground

protected Color fadeToBackground(Color color,
                                 boolean fade)

createButtonListener

protected BasicButtonListener createButtonListener(AbstractButton b)
Overrides:
createButtonListener in class BasicButtonUI

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class BasicButtonUI

Sky View Café - Java