java.lang.Object
javax.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
- 直接已知的子类:
-
MetalCheckBoxUI
MetalRadioButtonUI的RadioButtonUI实现
警告: 该类的序列化对象将不兼容未来的Swing版本。当前的序列化支持适用于短期存储或在运行相同Swing版本的应用程序之间的RMI。从1.4开始,已将所有JavaBeans的长期存储支持添加到java.beans包中。请参阅XMLEncoder。
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color禁用文本的颜色。protected Color焦点单选按钮的颜色。protected Color选定单选按钮的颜色。Fields declared in class javax.swing.plaf.basic.BasicRadioButtonUI
iconFields declared in class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI返回一个MetalRadioButtonUI的实例。protected Color返回禁用文本的颜色。protected Color返回焦点JRadioButton的颜色。protected Color返回选定的JRadioButton的颜色。void安装默认属性。Methods declared in class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize, paint, paintFocusMethods declared in class javax.swing.plaf.basic.BasicToggleButtonUI
getTextShiftOffset, paintIconMethods declared in class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getPropertyPrefix, installKeyboardActions, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListenersMethods declared in class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, installUI, uninstallUI, update
-
Field Details
-
focusColor
焦点单选按钮的颜色。 -
selectColor
选定单选按钮的颜色。 -
disabledTextColor
禁用文本的颜色。
-
-
Constructor Details
-
MetalRadioButtonUI
public MetalRadioButtonUI()构造一个MetalRadioButtonUI。
-
-
Method Details
-
createUI
返回一个MetalRadioButtonUI的实例。- 参数:
-
c- 一个组件 - 返回:
-
一个
MetalRadioButtonUI的实例
-
installDefaults
从类中复制的描述:BasicButtonUI安装默认属性。- 覆盖:
-
installDefaults在类BasicButtonUI - 参数:
-
b- 一个抽象按钮
-
getSelectColor
返回选定的JRadioButton的颜色。- 返回:
-
选定的
JRadioButton的颜色
-
getDisabledTextColor
返回禁用文本的颜色。- 返回:
- 禁用文本的颜色
-
getFocusColor
返回焦点JRadioButton的颜色。- 返回:
-
焦点
JRadioButton的颜色
-