public class BasicRadioButtonUI extends BasicToggleButtonUI
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
icon
|
defaultTextIconGap, defaultTextShiftOffset| Constructor and Description |
|---|
BasicRadioButtonUI()
|
| Modifier and Type | Method and Description |
|---|---|
static ComponentUI |
createUI(JComponent
|
Icon |
getDefaultIcon()
|
Dimension |
getPreferredSize(JComponent
The preferred size of the radio button
|
protected String |
getPropertyPrefix()
|
protected void |
installDefaults(AbstractButton
|
void |
paint(Graphics
paint the radio button
|
protected void |
paintFocus(Graphics
|
protected void |
uninstallDefaults(AbstractButton
|
getTextShiftOffset, paintIconclearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected Iconicon
public static ComponentUIcreateUI(JComponent b)
protected StringgetPropertyPrefix()
protected void installDefaults(AbstractButtonb)
protected void uninstallDefaults(AbstractButtonb)
public IcongetDefaultIcon()
public void paint(Graphicsg, JComponent c)
paint in class
BasicToggleButtonUI
g - the
Graphics context in which to paint
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
public DimensiongetPreferredSize(JComponent c)
getPreferredSize in class
BasicButtonUI
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
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container)