public class MetalRadioButtonUI extends BasicRadioButtonUI
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
| Modifier and Type | Field and Description |
|---|---|
protected Color |
disabledTextColor
|
protected Color |
focusColor
|
protected Color |
selectColor
|
icondefaultTextIconGap, defaultTextShiftOffset| Constructor and Description |
|---|
MetalRadioButtonUI()
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent
|
protected Color |
getDisabledTextColor()
|
protected Color |
getFocusColor()
|
protected Color |
getSelectColor()
|
void |
installDefaults(AbstractButton
|
void |
paint(Graphics
paint the radio button
|
protected void |
paintFocus(Graphics
|
protected void |
uninstallDefaults(AbstractButton
|
getDefaultIcon, getPreferredSize, getPropertyPrefixgetTextShiftOffset, paintIconclearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected ColorfocusColor
protected ColorselectColor
protected ColordisabledTextColor
public static ComponentUIcreateUI(JComponent c)
public void installDefaults(AbstractButtonb)
protected void uninstallDefaults(AbstractButtonb)
protected ColorgetSelectColor()
protected ColorgetDisabledTextColor()
protected ColorgetFocusColor()
public void paint(Graphicsg, JComponent c)
BasicRadioButtonUI
paint in class
BasicRadioButtonUI
g - the
Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)