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 c) |
protected Color |
getDisabledTextColor() |
protected Color |
getFocusColor() |
protected Color |
getSelectColor() |
void |
installDefaults(AbstractButton b) |
void |
paint(Graphics g,
JComponent c)
paint the radio button
|
protected void |
paintFocus(Graphics g,
Rectangle t,
Dimension d)
Paints focused radio button.
|
protected void |
uninstallDefaults(AbstractButton b) |
getDefaultIcon, getPreferredSize, getPropertyPrefix, installListeners, uninstallListenersgetTextShiftOffset, paintIconclearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected Color focusColor
protected Color selectColor
protected Color disabledTextColor
public static ComponentUI createUI(JComponent c)
public void installDefaults(AbstractButton b)
installDefaults in class BasicRadioButtonUIprotected void uninstallDefaults(AbstractButton b)
uninstallDefaults in class BasicRadioButtonUIprotected Color getSelectColor()
protected Color getDisabledTextColor()
protected Color getFocusColor()
public void paint(Graphics g, JComponent c)
BasicRadioButtonUIpaint in class BasicRadioButtonUIg - the Graphics context in which to paintc - the component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.update(java.awt.Graphics, javax.swing.JComponent)protected void paintFocus(Graphics g, Rectangle t, Dimension d)
BasicRadioButtonUIpaintFocus in class BasicRadioButtonUIg - an instance of Graphicst - boundsd - the size of radio button Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.