public class MetalRadioButtonUI extends BasicRadioButtonUI
警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,对所有JavaBeans的长期存储的支持已经添加到java.beans
包中。 请参阅XMLEncoder
。
Modifier and Type | Field and Description |
---|---|
protected Color |
disabledTextColor |
protected Color |
focusColor |
protected Color |
selectColor |
icon
defaultTextIconGap, defaultTextShiftOffset
Constructor and Description |
---|
MetalRadioButtonUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c) |
protected Color |
getDisabledTextColor() |
protected Color |
getFocusColor() |
protected Color |
getSelectColor() |
void |
installDefaults(AbstractButton b) |
void |
paint(Graphics g, JComponent c)
画单选按钮
|
protected void |
paintFocus(Graphics g, Rectangle t, Dimension d) |
protected void |
uninstallDefaults(AbstractButton b) |
getDefaultIcon, getPreferredSize, getPropertyPrefix
getTextShiftOffset, paintIcon
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected Color focusColor
protected Color selectColor
protected Color disabledTextColor
public static ComponentUI createUI(JComponent c)
public void installDefaults(AbstractButton b)
protected void uninstallDefaults(AbstractButton b)
protected Color getSelectColor()
protected Color getDisabledTextColor()
protected Color getFocusColor()
public void paint(Graphics g, JComponent c)
BasicRadioButtonUI
paint
在
BasicRadioButtonUI
g
- 要绘画的
Graphics
上下文
c
- 正在涂漆的部件;
这个参数经常被忽略,但如果UI对象是无状态的并且被多个组件共享,则可能会被使用
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)