|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
javax.swing.plaf.basic.BasicRadioButtonUI
public class BasicRadioButtonUI
The BasicLookAndFeel UI implementation for
JRadioButtons.
| Field Summary | |
|---|---|
protected Icon |
icon
The default icon for JRadioButtons. |
| Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
|---|
defaultTextIconGap, defaultTextShiftOffset |
| Constructor Summary | |
|---|---|
BasicRadioButtonUI()
Creates a new instance of BasicButtonUI. |
|
| Method Summary | |
|---|---|
static ComponentUI |
createUI(JComponent c)
Creates and returns a new instance of BasicRadioButtonUI. |
Icon |
getDefaultIcon()
Returns the default icon for JRadioButtons. |
Dimension |
getPreferredSize(JComponent c)
Calculate the preferred size of this component, by delegating to BasicGraphicsUtils.getPreferredButtonSize(javax.swing.AbstractButton, int). |
protected String |
getPropertyPrefix()
Returns the prefix used for UIDefaults properties. |
protected void |
installDefaults(AbstractButton b)
Installs defaults from the Look & Feel table on the specified button. |
void |
paint(Graphics g,
JComponent c)
Paints the RadioButton. |
protected void |
paintFocus(Graphics g,
Rectangle tr,
Dimension size)
Paints the focus indicator for JRadioButtons. |
| Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI |
|---|
paintIcon |
| Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
|---|
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Icon icon
| Constructor Detail |
|---|
public BasicRadioButtonUI()
BasicButtonUI.
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
BasicRadioButtonUI.
BasicRadioButtonUIprotected void installDefaults(AbstractButton b)
installDefaults in class BasicButtonUIb - the button on which to install the defaultsprotected String getPropertyPrefix()
RadioButton in this case.
getPropertyPrefix in class BasicToggleButtonUIpublic Icon getDefaultIcon()
public void paint(Graphics g,
JComponent c)
paint in class BasicToggleButtonUIg - the Graphics context to paint withc - the button to paintpublic Dimension getPreferredSize(JComponent c)
BasicButtonUIBasicGraphicsUtils.getPreferredButtonSize(javax.swing.AbstractButton, int).
getPreferredSize in class BasicButtonUIc - The component to measure
protected void paintFocus(Graphics g,
Rectangle tr,
Dimension size)
g - the graphics contexttr - the rectangle for the text labelsize - the size of the JRadioButton component.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||