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.
|
icon
defaultTextIconGap, 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, uninstallListeners
getTextShiftOffset, paintIcon
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected Color focusColor
protected Color selectColor
protected Color disabledTextColor
public static ComponentUI createUI(JComponent c)
MetalRadioButtonUI
.c
- a componentMetalRadioButtonUI
public void installDefaults(AbstractButton b)
BasicButtonUI
installDefaults
in class BasicRadioButtonUI
b
- an abstract buttonprotected void uninstallDefaults(AbstractButton b)
BasicButtonUI
uninstallDefaults
in class BasicRadioButtonUI
b
- an abstract buttonprotected Color getSelectColor()
JRadioButton
.JRadioButton
protected Color getDisabledTextColor()
protected Color getFocusColor()
JRadioButton
.JRadioButton
public void paint(Graphics g, JComponent c)
BasicRadioButtonUI
paint
in class BasicRadioButtonUI
g
- 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)
BasicRadioButtonUI
paintFocus
in class BasicRadioButtonUI
g
- an instance of Graphics
t
- 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