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

public Class BasicRadioButtonUI

extends BasicToggleButtonUI
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.metal.MetalRadioButtonUI, com.sun.java.swing.plaf.motif.MotifRadioButtonUI, javax.swing.plaf.basic.BasicCheckBoxUI
Imports
java.awt.*, javax.swing.*, javax.swing.plaf.*, javax.swing.text.View, sun.swing.SwingUtilities2

RadioButtonUI implementation for BasicRadioButtonUI
Author
Jeff Dinkins

Field Summary

Modifier and TypeField and Description
private boolean
protected Icon
icon

The icon.

private static Rectangle
private static Rectangle
private static Insets
private static Rectangle
private static Rectangle
private static final String
private static Dimension
private static Rectangle
private static final ComponentUI
private static Rectangle

Constructor Summary

AccessConstructor and Description
public
BasicRadioButtonUI()

Constructs a BasicRadioButtonUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

an instance of BasicRadioButtonUI
createUI
(JComponent
a component
b
)

Hides javax.swing.plaf.basic.BasicToggleButtonUI.createUI.

Returns an instance of BasicRadioButtonUI.

public Icon

Returns:

the default icon
getDefaultIcon
()

Returns the default icon.

public Dimension
getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicButtonUI.getPreferredSize.

The preferred size of the radio button

protected String
protected void
public synchronized void
protected void
paintFocus(Graphics
an instance of Graphics
g
,
Rectangle
bounds
textRect
,
Dimension
the size of radio button
size
)

Paints focused radio button.

protected void
Inherited from javax.swing.plaf.basic.BasicToggleButtonUI:
getTextShiftOffsetpaintIcon

Field Detail

defaults_initializedback to summary
private boolean defaults_initialized
iconback to summary
protected Icon icon

The icon.

iconRectback to summary
private static Rectangle iconRect

Hides javax.swing.plaf.basic.BasicButtonUI.iconRect.

prefIconRectback to summary
private static Rectangle prefIconRect
prefInsetsback to summary
private static Insets prefInsets
prefTextRectback to summary
private static Rectangle prefTextRect
prefViewRectback to summary
private static Rectangle prefViewRect
propertyPrefixback to summary
private static final String propertyPrefix

Hides javax.swing.plaf.basic.BasicToggleButtonUI.propertyPrefix.

sizeback to summary
private static Dimension size
textRectback to summary
private static Rectangle textRect

Hides javax.swing.plaf.basic.BasicButtonUI.textRect.

UIback to summary
private static final ComponentUI UI

Hides javax.swing.plaf.basic.BasicToggleButtonUI.UI.

viewRectback to summary
private static Rectangle viewRect

Hides javax.swing.plaf.basic.BasicButtonUI.viewRect.

Constructor Detail

BasicRadioButtonUIback to summary
public BasicRadioButtonUI()

Constructs a BasicRadioButtonUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent b)

Hides javax.swing.plaf.basic.BasicToggleButtonUI.createUI.

Returns an instance of BasicRadioButtonUI.

Parameters
b:JComponent

a component

Returns:ComponentUI

an instance of BasicRadioButtonUI

getDefaultIconback to summary
public Icon getDefaultIcon()

Returns the default icon.

Returns:Icon

the default icon

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent c)

Overrides javax.swing.plaf.basic.BasicButtonUI.getPreferredSize.

The preferred size of the radio button

Annotations
@Override
getPropertyPrefixback to summary
protected String getPropertyPrefix()

Overrides javax.swing.plaf.basic.BasicToggleButtonUI.getPropertyPrefix.

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

Returns the property prefix.

Annotations
@Override
installDefaultsback to summary
protected void installDefaults(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicButtonUI.installDefaults.

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

Installs default properties.

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

Overrides javax.swing.plaf.basic.BasicToggleButtonUI.paint.

paint the radio button

Annotations
@Override
paintFocusback to summary
protected void paintFocus(Graphics g, Rectangle textRect, Dimension size)

Paints focused radio button.

Parameters
g:Graphics

an instance of Graphics

textRect:Rectangle

bounds

size:Dimension

the size of radio button

uninstallDefaultsback to summary
protected void uninstallDefaults(AbstractButton b)

Overrides javax.swing.plaf.basic.BasicButtonUI.uninstallDefaults.

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

Uninstalls default properties.

Annotations
@Override