MetalCheckBoxUIpublic 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 | Description |
|---|---|---|
protected java.awt.Color |
disabledTextColor |
The color of a disabled text.
|
protected java.awt.Color |
focusColor |
The color of the focused radio button.
|
protected java.awt.Color |
selectColor |
The color of the selected radio button.
|
defaultTextIconGap, defaultTextShiftOffseticon| Constructor | Description |
|---|---|
MetalRadioButtonUI() |
| Modifier and Type | Method | Description |
|---|---|---|
static ComponentUI |
createUI(JComponent c) |
Returns an instance of
MetalRadioButtonUI. |
protected java.awt.Color |
getDisabledTextColor() |
Returns the color of the disabled text.
|
protected java.awt.Color |
getFocusColor() |
Returns the color of the focused
JRadioButton. |
protected java.awt.Color |
getSelectColor() |
Returns the color of the selected
JRadioButton. |
void |
installDefaults(AbstractButton b) |
Installs default properties.
|
void |
paint(java.awt.Graphics g,
JComponent c) |
paint the radio button
|
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Rectangle t,
java.awt.Dimension d) |
Paints focused radio button.
|
protected void |
uninstallDefaults(AbstractButton b) |
Uninstalls default properties.
|
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIgetDefaultIcon, getPreferredSize, getPropertyPrefix, installListeners, uninstallListenersgetTextShiftOffset, paintIconcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected java.awt.Color focusColor
protected java.awt.Color selectColor
protected java.awt.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 java.awt.Color getSelectColor()
JRadioButton.JRadioButtonprotected java.awt.Color getDisabledTextColor()
protected java.awt.Color getFocusColor()
JRadioButton.JRadioButtonpublic void paint(java.awt.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(java.awt.Graphics g,
java.awt.Rectangle t,
java.awt.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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.abuild.jdk9-71a766d4c180