javax.swing.plaf.metal
public class MetalRadioButtonUI extends BasicRadioButtonUI
| Field Summary | |
|---|---|
| protected Color | disabledTextColor Used to draw disabled text. |
| protected Color | focusColor Used to draw the focus rectangle. |
| protected Color | selectColor Used to fill the icon when the button is pressed. |
| Constructor Summary | |
|---|---|
| MetalRadioButtonUI()
Constructs a new instance of MetalRadioButtonUI. | |
| Method Summary | |
|---|---|
| static ComponentUI | createUI(JComponent component)
Returns a new instance of MetalRadioButtonUI.
|
| protected Color | getDisabledTextColor()
Returns the color for the {@link JRadioButton}'s text when the button is
disabled. |
| protected Color | getFocusColor()
Returns the color used to draw the focus rectangle when the
{@link JRadioButton} has the focus. |
| protected Color | getSelectColor()
Returns the color used to fill the {@link JRadioButton}'s icon when the
button is pressed. |
| void | installDefaults(AbstractButton b)
Sets the default values for the specified button.
|
| void | paint(Graphics g, JComponent c)
Paints the {@link JRadioButton}.
|
| protected void | paintFocus(Graphics g, Rectangle t, Dimension d)
Paints the focus rectangle for the {@link JRadioButton}.
|
| protected void | uninstallDefaults(AbstractButton b)
Clears any defaults set in the installDefaults() method.
|
MetalRadioButtonUI.MetalRadioButtonUI.
Parameters: component the component for which we return an UI instance
Returns: A new instance of MetalRadioButtonUI.
RadioButton.disabledText.
Returns: The disabled text color.
RadioButton.focus.
Returns: The color used to draw the focus rectangle.
See Also: MetalRadioButtonUI
RadioButton.select.
Returns: The select color.
Parameters: b the button.
Parameters: g the graphics device. c the component (an instance of {@link JRadioButton}).
Parameters: g the graphics device. t the bounding rectangle for the text. d ???
Parameters: b the {@link JRadioButton}.