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
The color of a disabled text.
|
protected Color |
focusColor
The color of the focused radio button.
|
protected Color |
selectColor
The color of the selected radio button.
|
icondefaultTextIconGap, defaultTextShiftOffset| Constructor and Description |
|---|
MetalRadioButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent c)
Returns an instance of
MetalRadioButtonUI. |
protected Color |
getDisabledTextColor()
Returns the color of the disabled text.
|
protected Color |
getFocusColor()
Returns the color of the focused
JRadioButton. |
protected Color |
getSelectColor()
Returns the color of the selected
JRadioButton. |
void |
installDefaults(AbstractButton b)
Installs default properties.
|
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)
Uninstalls default properties.
|
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)
MetalRadioButtonUI.c - a componentMetalRadioButtonUIpublic void installDefaults(AbstractButton b)
BasicButtonUIinstallDefaults in class BasicRadioButtonUIb - an abstract buttonprotected void uninstallDefaults(AbstractButton b)
BasicButtonUIuninstallDefaults in class BasicRadioButtonUIb - an abstract buttonprotected Color getSelectColor()
JRadioButton.JRadioButtonprotected Color getDisabledTextColor()
protected Color getFocusColor()
JRadioButton.JRadioButtonpublic 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, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait