APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.metal

public Class MetalRadioButtonUI

extends BasicRadioButtonUI
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.metal.MetalCheckBoxUI
Imports
sun.swing.SwingUtilities2, java.awt.*, java.awt.event.*, javax.swing.*, javax.swing.plaf.basic.*, javax.swing.border.*, javax.swing.plaf.*, java.io.Serializable, javax.swing.text.View

RadioButtonUI implementation for MetalRadioButtonUI

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 java.beans.XMLEncoder.

Authors
Michael C. Albers (Metal modifications), Jeff Dinkins (original BasicRadioButtonCode)

Field Summary

Modifier and TypeField and Description
private boolean
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.

private static final ComponentUI
Inherited from javax.swing.plaf.basic.BasicRadioButtonUI:
icon

Constructor Summary

AccessConstructor and Description
public
MetalRadioButtonUI()

Constructs a MetalRadioButtonUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

an instance of MetalRadioButtonUI
createUI
(JComponent
a component
c
)

Hides javax.swing.plaf.basic.BasicRadioButtonUI.createUI.

Returns an instance of MetalRadioButtonUI.

protected Color

Returns:

the color of the disabled text
getDisabledTextColor
()

Returns the color of the disabled text.

protected Color

Returns:

the color of the focused JRadioButton
getFocusColor
()

Returns the color of the focused JRadioButton.

protected Color

Returns:

the color of the selected JRadioButton
getSelectColor
()

Returns the color of the selected JRadioButton.

public void
public synchronized void
protected void
protected void
Inherited from javax.swing.plaf.basic.BasicRadioButtonUI:
getDefaultIcongetPreferredSizegetPropertyPrefix

Field Detail

defaults_initializedback to summary
private boolean defaults_initialized

Hides javax.swing.plaf.basic.BasicRadioButtonUI.defaults_initialized.

disabledTextColorback to summary
protected Color disabledTextColor

The color of a disabled text.

focusColorback to summary
protected Color focusColor

The color of the focused radio button.

selectColorback to summary
protected Color selectColor

The color of the selected radio button.

UIback to summary
private static final ComponentUI UI

Hides javax.swing.plaf.basic.BasicRadioButtonUI.UI.

Constructor Detail

MetalRadioButtonUIback to summary
public MetalRadioButtonUI()

Constructs a MetalRadioButtonUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicRadioButtonUI.createUI.

Returns an instance of MetalRadioButtonUI.

Parameters
c:JComponent

a component

Returns:ComponentUI

an instance of MetalRadioButtonUI

getDisabledTextColorback to summary
protected Color getDisabledTextColor()

Returns the color of the disabled text.

Returns:Color

the color of the disabled text

getFocusColorback to summary
protected Color getFocusColor()

Returns the color of the focused JRadioButton.

Returns:Color

the color of the focused JRadioButton

getSelectColorback to summary
protected Color getSelectColor()

Returns the color of the selected JRadioButton.

Returns:Color

the color of the selected JRadioButton

installDefaultsback to summary
public void installDefaults(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicRadioButtonUI.installDefaults.

Doc from javax.swing.plaf.basic.BasicButtonUI.installDefaults.

Installs default properties.

paintback to summary
public synchronized void paint(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicRadioButtonUI.paint.

Doc from javax.swing.plaf.basic.BasicRadioButtonUI.paint.

paint the radio button

paintFocusback to summary
protected void paintFocus(Graphics g, Rectangle t, Dimension d)

Overrides javax.swing.plaf.basic.BasicRadioButtonUI.paintFocus.

Doc from javax.swing.plaf.basic.BasicRadioButtonUI.paintFocus.

Paints focused radio button.

uninstallDefaultsback to summary
protected void uninstallDefaults(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicRadioButtonUI.uninstallDefaults.

Doc from javax.swing.plaf.basic.BasicButtonUI.uninstallDefaults.

Uninstalls default properties.