public class MetalRadioButtonUI extends javax.swing.plaf.basic.BasicRadioButtonUI
JRadioButton component.| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
disabledTextColor
Used to draw disabled text.
|
protected java.awt.Color |
focusColor
Used to draw the focus rectangle.
|
protected java.awt.Color |
selectColor
Used to fill the icon when the button is pressed.
|
| Constructor and Description |
|---|
MetalRadioButtonUI()
Constructs a new instance of
MetalRadioButtonUI. |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent component)
Returns a new instance of
MetalRadioButtonUI. |
protected java.awt.Color |
getDisabledTextColor()
Returns the color for the
JRadioButton's text when the button is
disabled. |
protected java.awt.Color |
getFocusColor()
Returns the color used to draw the focus rectangle when the
JRadioButton has the focus. |
protected java.awt.Color |
getSelectColor()
Returns the color used to fill the
JRadioButton's icon when the
button is pressed. |
void |
installDefaults(javax.swing.AbstractButton b)
Sets the default values for the specified button.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paints the
JRadioButton. |
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Rectangle t,
java.awt.Dimension d)
Paints the focus rectangle for the
JRadioButton. |
protected void |
uninstallDefaults(javax.swing.AbstractButton b)
Clears any defaults set in the installDefaults() method.
|
getDefaultIcon, getPreferredSize, getPropertyPrefixclearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIprotected java.awt.Color focusColor
protected java.awt.Color selectColor
protected java.awt.Color disabledTextColor
public MetalRadioButtonUI()
MetalRadioButtonUI.public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
MetalRadioButtonUI.component - the component for which we return an UI instanceMetalRadioButtonUI.public void installDefaults(javax.swing.AbstractButton b)
installDefaults in class javax.swing.plaf.basic.BasicRadioButtonUIb - the button.protected void uninstallDefaults(javax.swing.AbstractButton b)
uninstallDefaults in class javax.swing.plaf.basic.BasicButtonUIb - the JRadioButton.protected java.awt.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 java.awt.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 java.awt.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(java.awt.Graphics g, javax.swing.JComponent c)
JRadioButton.paint in class javax.swing.plaf.basic.BasicRadioButtonUIg - the graphics device.c - the component (an instance of JRadioButton).protected void paintFocus(java.awt.Graphics g, java.awt.Rectangle t, java.awt.Dimension d)
JRadioButton.paintFocus in class javax.swing.plaf.basic.BasicRadioButtonUIg - the graphics device.t - the bounding rectangle for the text.d - ???