All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicRadioButtonUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.ButtonUI
                    |
                    +----java.awt.swing.plaf.ToggleButtonUI
                            |
                            +----java.awt.swing.basic.BasicToggleButtonUI
                                    |
                                    +----java.awt.swing.basic.BasicRadioButtonUI

public class BasicRadioButtonUI
extends BasicToggleButtonUI
implements Serializable
RadioButtonUI implementation for BasicRadioButtonUI


Variable Index

 o defaultMargin
 o icon
 o radioButtonUI

Constructor Index

 o BasicRadioButtonUI()

Method Index

 o createIcon()
Creates the radio dot
 o createUI(JComponent)
 o getDefaultMargin(AbstractButton)
insets and margin
 o getPreferredSize(JComponent)
The preferred size of the radio button
 o installBorder(JComponent)
 o paint(Graphics, JComponent)
paint the radio button
 o paintFocus(Graphics, Rectangle, Dimension)

Variables

 o defaultMargin
protected static final Insets defaultMargin
 o icon
protected Icon icon
 o radioButtonUI
protected static ToggleButtonUI radioButtonUI

Constructors

 o BasicRadioButtonUI
public BasicRadioButtonUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent b)
 o installBorder
protected void installBorder(JComponent c)
 o paint
public void paint(Graphics g,
                  JComponent c)
paint the radio button

Overrides:
paint in class BasicToggleButtonUI
 o paintFocus
protected void paintFocus(Graphics g,
                          Rectangle textRect,
                          Dimension size)
 o createIcon
public Icon createIcon()
Creates the radio dot

 o getPreferredSize
public Dimension getPreferredSize(JComponent c)
The preferred size of the radio button

Overrides:
getPreferredSize in class BasicToggleButtonUI
 o getDefaultMargin
public Insets getDefaultMargin(AbstractButton b)
insets and margin

Overrides:
getDefaultMargin in class BasicToggleButtonUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature