|
|||||||||
| 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
javax.swing.plaf.metal.MetalRadioButtonUI
public class MetalRadioButtonUI
A UI delegate for the JRadioButton component.
| Field Summary | |
|---|---|
protected Color |
disabledTextColor
Used to draw disabled text. |
protected Color |
focusColor
Used to draw the focus rectangle. |
protected Color |
selectColor
Used to fill the icon when the button is pressed. |
| Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI |
|---|
icon |
| Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
|---|
defaultTextIconGap, defaultTextShiftOffset |
| Constructor Summary | |
|---|---|
MetalRadioButtonUI()
Constructs a new instance of MetalRadioButtonUI. |
|
| Method Summary | |
|---|---|
static ComponentUI |
createUI(JComponent component)
Returns a new instance of MetalRadioButtonUI. |
protected Color |
getDisabledTextColor()
Returns the color for the JRadioButton's text when the button is
disabled. |
protected Color |
getFocusColor()
Returns the color used to draw the focus rectangle when the JRadioButton has the focus. |
protected Color |
getSelectColor()
Returns the color used to fill the JRadioButton's icon when the
button is pressed. |
void |
installDefaults(AbstractButton b)
Sets the default values for the specified button. |
void |
paint(Graphics g,
JComponent c)
Paints the JRadioButton. |
protected void |
paintFocus(Graphics g,
Rectangle t,
Dimension d)
Paints the focus rectangle for the JRadioButton. |
protected void |
uninstallDefaults(AbstractButton b)
Clears any defaults set in the installDefaults() method. |
| Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI |
|---|
getDefaultIcon, getPreferredSize, getPropertyPrefix |
| 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, 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 Color focusColor
protected Color selectColor
protected Color disabledTextColor
| Constructor Detail |
|---|
public MetalRadioButtonUI()
MetalRadioButtonUI.
| Method Detail |
|---|
public static ComponentUI createUI(JComponent component)
MetalRadioButtonUI.
component - the component for which we return an UI instance
MetalRadioButtonUI.public void installDefaults(AbstractButton b)
installDefaults in class BasicRadioButtonUIb - the button.protected void uninstallDefaults(AbstractButton b)
uninstallDefaults in class BasicButtonUIb - the JRadioButton.protected Color getSelectColor()
JRadioButton's icon when the
button is pressed. The default color is obtained from the
UIManager defaults via an entry with the key
RadioButton.select.
protected Color getDisabledTextColor()
JRadioButton's text when the button is
disabled. The default color is obtained from the UIManager
defaults via an entry with the key RadioButton.disabledText.
protected Color getFocusColor()
JRadioButton has the focus. The default color is obtained from
the UIManager defaults via an entry with the key
RadioButton.focus.
paintFocus(Graphics, Rectangle, Dimension)
public void paint(Graphics g,
JComponent c)
JRadioButton.
paint in class BasicRadioButtonUIg - the graphics device.c - the component (an instance of JRadioButton).
protected void paintFocus(Graphics g,
Rectangle t,
Dimension d)
JRadioButton.
paintFocus in class BasicRadioButtonUIg - the graphics device.t - the bounding rectangle for the text.d - ???
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||