org.openbp.swing.plaf.sky
Class SkyToggleButtonUI

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.metal.MetalButtonUI
                  extended by org.openbp.swing.plaf.sky.SkyButtonUI
                      extended by org.openbp.swing.plaf.sky.SkyToggleButtonUI

public class SkyToggleButtonUI
extends SkyButtonUI

The UI for toggle buttons.


Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalButtonUI
disabledTextColor, focusColor, selectColor
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
SkyToggleButtonUI()
           
 
Method Summary
protected  int calculateShadowDepth(javax.swing.AbstractButton b)
          ToggleButtons have another shadow.
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Create and returns the UI of the JButton.
 
Methods inherited from class org.openbp.swing.plaf.sky.SkyButtonUI
getPreferredSize, getShadowDepth, installUI, isShadowOn, paint, setShadowDepth, setShadowOn
 
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, installDefaults, paintButtonPressed, paintFocus, paintText, uninstallDefaults, update
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyToggleButtonUI

public SkyToggleButtonUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Create and returns the UI of the JButton.

Parameters:
c - a JComponent value
Returns:
a ComponentUI value

calculateShadowDepth

protected int calculateShadowDepth(javax.swing.AbstractButton b)
ToggleButtons have another shadow.



Copyright © 2011. All Rights Reserved.