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 JavaBeansTM
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 |
icon
defaultTextIconGap, 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) |
protected void |
uninstallDefaults(AbstractButton b) |
getDefaultIcon, getPreferredSize, getPropertyPrefix
getTextShiftOffset, paintIcon
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected Color focusColor
protected Color selectColor
protected Color disabledTextColor
public static ComponentUI createUI(JComponent c)
public void installDefaults(AbstractButton b)
installDefaults
in class BasicRadioButtonUI
protected void uninstallDefaults(AbstractButton b)
uninstallDefaults
in class BasicRadioButtonUI
protected Color getSelectColor()
protected Color getDisabledTextColor()
protected Color getFocusColor()
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)
paintFocus
in class BasicRadioButtonUI
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, 2011, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b138