com.alee.laf.radiobutton
Class WebRadioButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
javax.swing.plaf.basic.BasicRadioButtonUI
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
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI |
icon |
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
defaultTextIconGap, defaultTextShiftOffset |
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 |
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
WebRadioButtonUI
public WebRadioButtonUI()
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