com.alee.laf.radiobutton
Class WebRadioButtonUI

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 com.alee.laf.radiobutton.WebRadioButtonUI
All Implemented Interfaces:
ShapeProvider

public class WebRadioButtonUI
extends javax.swing.plaf.basic.BasicRadioButtonUI
implements ShapeProvider

User: mgarin Date: 28.04.11 Time: 14:55


Field Summary
 java.awt.Stroke borderStroke
           
static java.util.List<javax.swing.ImageIcon> CHECK_STATES
           
static javax.swing.ImageIcon DISABLED_CHECK
           
static int MAX_DARKNESS
           
 
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
 
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
 
Constructor Summary
WebRadioButtonUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Color getBorderColor()
           
 java.awt.Color getBottomBgColor()
           
 java.awt.Color getBottomSelectedBgColor()
           
 java.awt.Color getDarkBorderColor()
           
 java.awt.Color getDisabledBorderColor()
           
 int getIconHeight()
           
 java.awt.Rectangle getIconRect()
           
 int getIconWidth()
           
 java.awt.Insets getMargin()
           
 int getRound()
           
 int getShadeWidth()
           
 java.awt.Color getTopBgColor()
           
 java.awt.Color getTopSelectedBgColor()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isAnimated()
           
 boolean isRolloverDarkBorderOnly()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintText(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle textRect, java.lang.String text)
           
 java.awt.Shape provideShape()
          Returns component shape.
 void setAnimated(boolean animated)
           
 void setBorderColor(java.awt.Color borderColor)
           
 void setBottomBgColor(java.awt.Color bottomBgColor)
           
 void setBottomSelectedBgColor(java.awt.Color bottomSelectedBgColor)
           
 void setDarkBorderColor(java.awt.Color darkBorderColor)
           
 void setDisabledBorderColor(java.awt.Color disabledBorderColor)
           
 void setIconHeight(int iconHeight)
           
 void setIconWidth(int iconWidth)
           
 void setMargin(java.awt.Insets margin)
           
 void setRolloverDarkBorderOnly(boolean rolloverDarkBorderOnly)
           
 void setShadeWidth(int shadeWidth)
           
 void setTopBgColor(java.awt.Color topBgColor)
           
 void setTopSelectedBgColor(java.awt.Color topSelectedBgColor)
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize, getPropertyPrefix, installDefaults, paintFocus, uninstallDefaults
 
Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIcon
 
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners
 
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

MAX_DARKNESS

public static final int MAX_DARKNESS
See Also:
Constant Field Values

CHECK_STATES

public static java.util.List<javax.swing.ImageIcon> CHECK_STATES

DISABLED_CHECK

public static javax.swing.ImageIcon DISABLED_CHECK

borderStroke

public java.awt.Stroke borderStroke
Constructor Detail

WebRadioButtonUI

public WebRadioButtonUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.basic.BasicButtonUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicButtonUI

provideShape

public java.awt.Shape provideShape()
Description copied from interface: ShapeProvider
Returns component shape.

Specified by:
provideShape in interface ShapeProvider
Returns:
component shape

getMargin

public java.awt.Insets getMargin()

setMargin

public void setMargin(java.awt.Insets margin)

isAnimated

public boolean isAnimated()

setAnimated

public void setAnimated(boolean animated)

isRolloverDarkBorderOnly

public boolean isRolloverDarkBorderOnly()

setRolloverDarkBorderOnly

public void setRolloverDarkBorderOnly(boolean rolloverDarkBorderOnly)

getBorderColor

public java.awt.Color getBorderColor()

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

getDarkBorderColor

public java.awt.Color getDarkBorderColor()

setDarkBorderColor

public void setDarkBorderColor(java.awt.Color darkBorderColor)

getDisabledBorderColor

public java.awt.Color getDisabledBorderColor()

setDisabledBorderColor

public void setDisabledBorderColor(java.awt.Color disabledBorderColor)

getTopBgColor

public java.awt.Color getTopBgColor()

setTopBgColor

public void setTopBgColor(java.awt.Color topBgColor)

getBottomBgColor

public java.awt.Color getBottomBgColor()

setBottomBgColor

public void setBottomBgColor(java.awt.Color bottomBgColor)

getTopSelectedBgColor

public java.awt.Color getTopSelectedBgColor()

setTopSelectedBgColor

public void setTopSelectedBgColor(java.awt.Color topSelectedBgColor)

getBottomSelectedBgColor

public java.awt.Color getBottomSelectedBgColor()

setBottomSelectedBgColor

public void setBottomSelectedBgColor(java.awt.Color bottomSelectedBgColor)

getRound

public int getRound()

getShadeWidth

public int getShadeWidth()

setShadeWidth

public void setShadeWidth(int shadeWidth)

getIconWidth

public int getIconWidth()

setIconWidth

public void setIconWidth(int iconWidth)

getIconHeight

public int getIconHeight()

setIconHeight

public void setIconHeight(int iconHeight)

getIconRect

public java.awt.Rectangle getIconRect()

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicRadioButtonUI

paintText

protected void paintText(java.awt.Graphics g,
                         javax.swing.JComponent c,
                         java.awt.Rectangle textRect,
                         java.lang.String text)
Overrides:
paintText in class javax.swing.plaf.basic.BasicButtonUI