public class

WindowsRadioButtonUI

extends BasicRadioButtonUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.ButtonUI
       ↳ javax.swing.plaf.basic.BasicButtonUI
         ↳ javax.swing.plaf.basic.BasicToggleButtonUI
           ↳ javax.swing.plaf.basic.BasicRadioButtonUI
             ↳ com.sun.java.swing.plaf.windows.WindowsRadioButtonUI
Known Direct Subclasses

Class Overview

Windows rendition of the component.

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. A future release of Swing will provide support for long term persistence.

Summary

Fields
protected int dashedRectGapHeight
protected int dashedRectGapWidth
protected int dashedRectGapX
protected int dashedRectGapY
protected Color focusColor
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicRadioButtonUI
From class javax.swing.plaf.basic.BasicButtonUI
Public Constructors
WindowsRadioButtonUI()
Public Methods
static ComponentUI createUI(JComponent c)
Dimension getPreferredSize(JComponent c)
The preferred size of the radio button
void installDefaults(AbstractButton b)
Protected Methods
Color getFocusColor()
void paintFocus(Graphics g, Rectangle textRect, Dimension d)
void paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
Overridden method to render the text without the mnemonic
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicRadioButtonUI
From class javax.swing.plaf.basic.BasicToggleButtonUI
From class javax.swing.plaf.basic.BasicButtonUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Fields

protected int dashedRectGapHeight

protected int dashedRectGapWidth

protected int dashedRectGapX

protected int dashedRectGapY

protected Color focusColor

Public Constructors

public WindowsRadioButtonUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

public Dimension getPreferredSize (JComponent c)

The preferred size of the radio button

Parameters
c the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components

public void installDefaults (AbstractButton b)

Protected Methods

protected Color getFocusColor ()

protected void paintFocus (Graphics g, Rectangle textRect, Dimension d)

protected void paintText (Graphics g, AbstractButton b, Rectangle textRect, String text)

Overridden method to render the text without the mnemonic

Parameters
g Graphics context
b Current button to render
textRect Bounding rectangle to render the text.
text String to render